Yes, you can actually split that stuff into different bundles.
@SEE:
http://www.javapassion.com/javaee6/#OSGi
I would do it like that:
- one model bundle
- one "services" bundle, effectively storing your business logic
- one webapp with simple controllers, that get their osgi services declaratively
you then can exchange the business logic of the app through osgi
and reloading of the webapp itself will be very fast, as it only has
to load the controllers.
afaik you still need to have the controllers in the webapp as you
can't inject @Resource annotated beans into your facelet pages directly
(at least, I don't know how to do it..).
kind regards,
dominik
--
[url=http://www.dominikdorn.com]Dominik Dorn[/url]
Tausche Deine [url=http://www.studyguru.eu] Lernunterlagen auf
http://www.studyguru.eu[/url]!