Community

Communication between EJBs across 2 ears

created by Sai V in EJB 3.0 Development - View the full discussion

Hi

I have a "Role" bean implemented and deployed in Jboss as "svc" ear.

I have a "Dbi" bean implemented and deployedin Jboss as "Dbi" ear.

 

Now I want to call methods in the Role bean from Dbi bean methods.

To do that I inject Role bean in Dbi using the code below...

 

@EJB(name="Role", beanInterface=Role.class)

roleLookup = (Role) new InitialContext().lookup("java:comp/env/ejb/Role");

 

I keep getting "NameNotFoundException: Role not bound", when I run this code.

 

How do I resolve this error? Is it possible at all?

I am new to J2EE and to these forums. So I apologise if my message is in an incorrect format or improper forum.

Thanks

Sai

Reply to this message by going to Community

Start a new discussion in EJB 3.0 Development at Community