[jboss-dev-forums] [Design of EJB 3.0] - Re: javax.ejb.EJB Annotations Outside EJB3 Components
jaikiran
do-not-reply at jboss.com
Mon May 4 11:23:32 EDT 2009
anonymous wrote : is the construction of the ejb reference right in the following code?
Looks fine :)
Just a note though, which ALR already mentioned, the FirstMatchEjbReferenceResolver isn't constrained by the deployment unit passed to it. Consider your application is pacakged as :
| XYZ.ear
| |
| |--- A.jar
| |
| |--- B.jar
Assuming a deployment unit corresponding to A.jar (which belongs to XYZ.ear) is passed to this resolver, the resolver will not just look for the right EJB within A.jar but will also look for beans from within B.jar.
If you want the behaviour to be different, then you will have to use a different implementation other than the FirstMatchEjbReferenceResolver.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228359#4228359
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228359
More information about the jboss-dev-forums
mailing list