[jboss-dev-forums] [Design of EJB 3.0] - Injection at invocation time, not instantiation time

bdecoste do-not-reply at jboss.com
Wed Oct 10 11:43:47 EDT 2007


A customer is asking for injection to occur at invocation time, not bean instantiation time. This is a non issue for session beans as they are instantiated at invocation time, but it's an issue for Service beans that are instantiated at deploy time. Specifically the problem is if a @Service bean tries to inject @EJB(mappedName="xyz") and that bean is not yet deployed on another node, the @Service bean fails to deploy.

Another way to resolve this is not to instantiate Service beans until invocation time just like session beans.

Thoughts?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093566#4093566

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093566



More information about the jboss-dev-forums mailing list