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

Sai V do-not-reply at jboss.com
Wed Jun 16 11:06:38 EDT 2010


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

"Communication between EJBs across 2 ears"

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

--------------------------------------------------------------
Thanks for the helpful reply.

Here is more information:
RoleBean is the class that implements Role

ejb-jar.xml of both the calling ear and the ear being called have only <display-name> tag. I do not have jboss.xml.

The contents of the Global JNDI namesapce regarding my beans are...

+- svc (class: org.jnp.interfaces.NamingContext)
  |   +- UnitBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy108 implements No ClassLoaders found for: ejb.Unit (no security manager: RMI class loader disabled))
  |   |   +- remote (proxy: $Proxy107 implements No ClassLoaders found for: ejb.Unit (no security manager: RMI class loader disabled))
  |   +- RoleBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy104 implements No ClassLoaders found for: ejb.Role (no security manager: RMI class loader disabled))
  |   |   +- remote (proxy: $Proxy103 implements No ClassLoaders found for: ejb.Role (no security manager: RMI class loader disabled))
 

Both the statements below fail with the name not bound exception(whether I use @EJB or not):

RoleBean roleLookup = (ejb.RoleBean) new InitialContext().lookup("svc/RoleBean/remote");
or

Role roleLookup = (ejb.Role) new InitialContext().lookup("svc/Role/remote");

Any ideas how to fix this?
Thanks

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/548290#548290]

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100616/ccdd1f76/attachment.html 


More information about the jboss-user mailing list