[jboss-dev-forums] [Design of EJB 3.0] - Re: javax.ejb.EJB Annotations Outside EJB3 Components
jaikiran
do-not-reply at jboss.com
Thu Apr 30 07:18:01 EDT 2009
anonymous wrote : Above usecase doesn't work because I don't know how to construct/obtain injected EJB3 JNDI name.
We have a EJBReferenceResolver http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReferenceResolver.java
which, given a deployment unit and an EJBReference http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReference.java resolves the JNDI name.
Ex: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/plugins/FirstMatchEjbReferenceResolver.java
The only thing i am not sure is whether non-EJB3 components (like JBossWS) can use this (i.e. add a dependency on this).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227843#4227843
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227843
More information about the jboss-dev-forums
mailing list