[jboss-dev-forums] [Design of EJB 3.0] - Re: ClientContainer enc handling
wolfc
do-not-reply at jboss.com
Wed Dec 13 03:43:55 EST 2006
What if we bind a collection of injectors (org.jboss.injection.Injector) under java:comp/jboss/injectors?
Then you get something like this:
1. parse XML for injectors
2. if(!metadata complete) parse annotations for injectors
3. bind in JNDI
-- server is done
4. client (/ EJBContainer serverside) looks up injectors and fires them
All injectors should be JndiPropertyInjector with a mapped name somewhere in JNDI space.
During steps 1 & 2 parsing for env entries can also be done, but these should be treated separately.
This would simplify injection a lot, but would need a bit more functionality on the setup-env phase. It would also mean that the client uses only JavaEE API's and a simple injection framework, thus it can become a separate project / module.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993283#3993283
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993283
More information about the jboss-dev-forums
mailing list