I believe the ejb-link tag is the ejb-name, not necessarily the 
jndi-name for the bean.

[EMAIL PROTECTED] wrote:

> You should declare a reference to the entity bean in the deployment
> descriptor, like this:
> 
> 
> <session>
> ...
>   <ejb-ref>
>     <ejb-ref-name>ejb/LogEventInfo</ejb-ref-name>
>     <ejb-ref-type>Entity</ejb-ref-type>
>     <home>com.trilogy.tbs.logging.LogEventInfoHome</home>
>     <remote>com.trilogy.tbs.logging.LogEventInfo</remote>
>     <ejb-link>LogEventInfo</ejb-link>
>   </ejb-ref>
> </session>
> 
> This way, you will code your session bean so that it always does a lookup
> like:
> 
> jndiCtx.lookup("java:comp/env/ejb/LogEventInfo");
> 
> This way, if the entity bean is ever deployed with a different name, all
> you have to do is change the ejb-link tag to point to the new name.
> 
> Alex



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to