java - Embedded web container supporting JSR-330 injection directly? -


we have decided our modular code should use jsr-330 dependency injection , have used guice 2.1svn or java ee 6 cdi actual injection in several projects , has worked well.

we have 1 remaining scenario need find solution, namely have embedded web container running on java 5 able deploy war-files using jsr-330 injection in java ee 6.

i have found glassfish , resin 4 can this, java ee 6 web profile large purpose run quite small applications each in own embedded server.

hence question is, does there exist web container native jsr-330 support available can deploy our existing code (compiled java 5) without having full weld or guice-servlet enclosed in war. fine have full configuration suite placed in main code invoking web container, don't want guice/spring/weld jars in actual web application deployment.

have considered using jetty 6 or 7 embedded? it's open source , supported eclipse, have long lifetime of support. use time spring di , find extremely lightweight. ideal rapid, iterative development.

your question specifies no guice, spring or weld jars in actual application. jetty allows configuration of different classpaths, can include necessary support implementations of jsr-330 required.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -