开发者

Can I change web application root globally in jboss 4.2?

I have following situation of deployment:

  • application_one.war
  • application_two.war
  • application_three.war

When I deploy it in Jboss, I get three url contexts:

  • http//myserver/application_one/
  • http//myserver/application_two/
  • http//myserver/appl开发者_如何学Goication_three/

Is it possible to change (prepend) globally an additional path to all deployed webapplication in a single setting, so that my new path would look like this?

  • http//myserver/globalprefix/application_one/
  • http//myserver/globalprefix/application_two/
  • http//myserver/globalprefix/application_three/

I do not want to change the war by using jboss-web.xml, but I am looking to do this in a general way on a central position, so even new wars will get this context prepended.


This is slightly off topic, but in a lot of production environments you'd have a web server such as Apache "in front" of your appserver (in this case JBoss), which you would be able to set up with a path (check out mod_rewrite, though don't quote me on that).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜