Hi!

Greg Pierce wrote:
> Is there an mechanism in jBoss that will allow EJBs to locate and
> communicate with other beans running in the same container? I tried to
> connect to another EJB from my EJB but was met with a SecurityException.

If they are in the same deployment you should use the java: namespace as
shown in the EJB spec.

If they are not in the same deployment you should still use the java:
namespace, but be sure to use the jBoss EJX GUI to link the java:
reference to the global JNDI-name of the other bean.

So:
Always use the java:comp/env namespace in JNDI to lookup other beans,
both in same deployment and others.

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to