On Thu, 25 Apr 2002, David Ward wrote:

> > Simply: I have a session bean UserManager and I want it to access
> > entity bean LocalRegion (through the local interface).
> > 
> > Unfortunatelly, I'm getting just an exception saying
> > "LocalRegion not bound".
> 
> David>  Well first of all, you show below that the OptionsBrowser bean 
> has an ejb-ref to LocalRegion; what about UserManager?

Sorry, my mistake. I was talking about OptionsBrowser.  

> >             <ejb-ref>
> >                 <ejb-ref-name>ejb/LocalRegion</ejb-ref-name>
> >                 <ejb-ref-type>Entity</ejb-ref-type>
> > <home>net.templation.juristic.as.ejb.entities.LocalRegionHome</home>
> > <remote>net.templation.juristic.as.ejb.entities.LocalRegion</remote>
> 
> David> Use local-home and local instead of home and remote above.

You're right. And above all, there should be used <ejb-local-ref>
instead of <ejb-ref>.

> >             <ejb-ref>
> >             <ejb-ref-name>ejb/LocalRegion</ejb-ref-name>
> >             <jndi-name>ejb/LocalRegion</jndi-name>
> >             </ejb-ref>
> 
> David> You do not need an ejb-ref block in your jboss.xml file unless 
> you are trying to access a bean on another server.

I know, I was trying to test all possible possibilities :-)

Thanks for your help

Pavel




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

Reply via email to