JBoss Community

are there any other ways to invoke EJB except for @EJB(lookup='JNDI')

created by yunshi tan in JBoss AS 7 Development - View the full document

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

Create a new document in JBoss AS 7 Development at Community