0

We have many web applications that have shared setting (the web.xml and servlets are the same) and just Spring routes requests to different beans (BlazeDS & Spring).

My question is: is there a way to place web.xml in a shared jar? or another way to have the common web.xml exist once so it can come from a framework?

mbdev
  • 6,343
  • 14
  • 46
  • 63

1 Answers1

3

Servlet 3 specification support for web.xml includes. Which means that you can split your giant configuration file to few smaller: spring-config.xml, blazeds-config.xml etc

Vadim
  • 5,154
  • 2
  • 20
  • 18
  • This is a step in the right direction. Now how can I make one of them come from outside location? – mbdev Nov 21 '10 at 10:59
  • I see on the Servlet specification that web fragment can come from jar files, which looks like what I need. I will check it out – mbdev Nov 21 '10 at 11:03