yunshi tan [
https://community.jboss.org/people/yunshi] created the discussion
"are there any other ways to invoke EJB except for @EJB
(lookup='JNDI')"
To view the discussion, visit:
https://community.jboss.org/message/785305#785305
--------------------------------------------------------------
Hi all,
I want to inject 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 the JNDI names in some xml files like jboss-ejb3.xml, so that I
can just inject the EJB object by @EJB.
Is there any way to do it ?
Thanks in adavence.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/785305#785305]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]