[jboss-user] [EJB 3.0 Development] - Communication between EJBs across 2 ears

Sai V do-not-reply at jboss.com
Tue Jun 15 14:51:52 EDT 2010


Sai V [http://community.jboss.org/people/njv] created the discussion

"Communication between EJBs across 2 ears"

To view the discussion, visit: http://community.jboss.org/message/548085#548085

--------------------------------------------------------------
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
[http://community.jboss.org/message/548085#548085]

Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100615/52f5d232/attachment-0001.html 


More information about the jboss-user mailing list