[jboss-dev-forums] [JBoss AS 7 Development] - are there any other ways to invoke EJB except for @EJB(lookup='JNDI')
yunshi tan
do-not-reply at jboss.com
Fri Dec 28 10:11:38 EST 2012
yunshi tan [https://community.jboss.org/people/yunshi] created the document:
"are there any other ways to invoke EJB except for @EJB(lookup='JNDI')"
To view the document, visit: https://community.jboss.org/docs/DOC-48135
--------------------------------------------------------------
Hi all,
I want to invoke an EJB obejct to another EJB object, so I am well knowing that I can have it like
@EJB(lookup="java:global/project/SomeDAOImpl!com.company.dao.common.local.SomeLocal")
private SomeLocalDAO someDAO;
However, I feel it bizzard to have all the JNDI names in my code source;
I would like to declare it in some source files like jboss-ejb3.xml.
Is there any way to do it ?
Thanks in adavence.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48135]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121228/28b42be6/attachment.html
More information about the jboss-dev-forums
mailing list