From Myeclipse I created a sample web application (MyApp). The application has got a simple listner class that implements the MessageListener. The url to access the application is http://localhost:8080/MyApp.
web.xml
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<listener>
<listener-class>
com.listeners.MyListener
</listener-class>
</listener>
</web-app>
------------------------------------------------------------------
How can get the applicationcontext path? That is path = 'http://localhost:8080/MyApp' should be my answer. can any one help me out ?
Bookmarks