[jboss-user] [EJB 3.0 Development] - Deferring instance creation/injection to CDI

Marius Bogoevici do-not-reply at jboss.com
Tue Aug 10 17:07:17 EDT 2010


Marius Bogoevici [http://community.jboss.org/people/marius.bogoevici] replied to the discussion

"Deferring instance creation/injection to CDI"

To view the discussion, visit: http://community.jboss.org/message/556733#556733

--------------------------------------------------------------
Andrew,

You're right about the creation of the instantiatior instance, but it's still a globally-defined bean and the problem, the way I see it, is that you can't have every single deployment replace the global "org.jboss.ejb3.BeanInstantiator" bean for two reasons: a) not every EJB3 deployment is a CDI deployment
and b) Weld bean instantiators need to be created per-deployment unit (as the info they need for instantiating
a particular EJB is specific to the deployment archive that the EJB is defined in).

But now that I'm looking at this again, I have trouble finding an easy way of having a deployment-specific BeanInstantiator being created by the MC and passed onto the EJB3Deployment, since the latter is not an MC bean itself. So I'll try to solve this from within weld-int, but I'm a bit wary of deployer ordering issues.







--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/556733#556733]

Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100810/ab99386c/attachment.html 


More information about the jboss-user mailing list