[jboss-user] [EJB 3.0] - Re: Possible Bug?

mopuf do-not-reply at jboss.com
Tue Dec 23 02:37:37 EST 2008


IMHO here we deal here with two problems (at least), one of my first question is which is your goal ?
Here are my answers to your problem :
1.The EJBs does JNDI behind the scene and to solve this you must help him a little - with some configuration files.
2.If two bean are implementing the same interface (strategy which is not desirable) then you shod use the beanName attribute to inject the right bean.
In most of the cases you use the EJB without any attribute and let the container to do the look up job.
Why you use the @EJB together with the name ?


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

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

More information about the jboss-user mailing list