开发者

Context Path in Jboss

开发者 https://www.devze.com 2022-12-15 22:29 出处:网络
There is a war deployed in JBOSS currently. If I want to figure out the conte开发者_如何学Cxt path for the WAR in Jboss, where should I be looking at? Server.xml?If your application is packaged as a W

There is a war deployed in JBOSS currently. If I want to figure out the conte开发者_如何学Cxt path for the WAR in Jboss, where should I be looking at? Server.xml?


If your application is packaged as a WAR file then you can create jboss-web.xml under WEB-INF folder of WAR file and specify the context-root in jboss-web.xml like this -

<jboss-web>
  <context-root>MyWebAppContext</context-root>
</jboss-web>

If your application is packaged as an EAR file then you can specify context-root in META-INF/application.xml of EAR like this

<module>  
  <web>  
    <web-uri>MyWAR.war</web-uri>  
    <context-root>MyWebAppContext</context-root>  
  </web>  
</module>  


In Jboss 4.2.3 go to your jmx-console and under jboss.web you will find the application and its context path, for example: J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/jmx-console

has the context path "jmx-console/"

0

精彩评论

暂无评论...
验证码 换一张
取 消