users@glassfish.java.net

Webmodule with multiple web.xml

From: Major Péter <majorpetya_at_sch.bme.hu>
Date: Sun, 19 Dec 2010 23:27:13 +0100

Hi,

I have a big project, and I would like to create small modules from it
in a way where adding a new jar to WEB-INF/lib would mean, that the
web.xml inside of that jar will be loaded, and that would also mean,
that the jar can add new servlets, filters, listeners, etc. If I
understand correctly web-fragment.xml's are doing something like this,
my question is can this be done somehow with Java EE 5?

Thanks,
Peter