Hi!

Indigo Blue wrote:
> I would highly appreciate it if someone could clarify a few points:
> If I need to refer an entity bean from a stateless session bean (they are in
> the same descriptor) do I have to specify the entity bean to be EJB
> reference for the session bean?

According to the EJB-spec, you should set ejb-link to the name of the
bean you want to reference. jBoss follows the EJB-spec, so...

> If so, what is in the Link field for an EJB reference: EJB name or JNDI
> name? And why is JNDI name setting of an EJB reference left empty (in the
> test beans)?

There are two ways to configure what a EJB-reference should point to.
The EJB-spec way is to link it to another bean in the same application.
However, if you need to talk to some bean that is not in the same
application, then jBoss have introduced a JNDI-name setting that you can
enter any valid JNDI-name into (which the other bean is bound to).

Normally you wouldn't use this. This is only for the special cases where
you need to reference outside beans.

/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