Re: [JBoss-user] EJB references problem
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/LocalRegion > > Entity > > net.templation.juristic.as.ejb.entities.LocalRegionHome > > net.templation.juristic.as.ejb.entities.LocalRegion > > David> Use local-home and local instead of home and remote above. You're right. And above all, there should be used instead of . > > > > ejb/LocalRegion > > ejb/LocalRegion > > > > 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
Re: [JBoss-user] EJB references problem
So where can you find your bean if you take a look at JNDI-view on :8082 ? Regards, Burkhard - Original Message - From: "Pavel Kolesnikov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 12:37 PM Subject: [JBoss-user] EJB references problem > Hello, > > another problems during switching to JBoss 3.0 (RC1 with Tomcat): > > 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". > > My ejb-jar.xml: > > LocalRegion > LocalRegionEJB > > net.templation.juristic.as.ejb.entities.LocalRegionHome > net.templation.juristic.as.ejb.entities.LocalRegion > > net.templation.juristic.as.ejb.entities.RegionEJB > Container > False > 2.x > Region > java.lang.String > regionId > > regionId > > > regionName > > > > > OptionsBrowser > net.templation.juristic.as.ejb.sessions.OptionsBrowserHome > net.templation.juristic.as.ejb.sessions.OptionsBrowser > net.templation.juristic.as.ejb.sessions.OptionsBrowserEJB > Container > Stateless > False > > ejb/LocalRegion > Entity > net.templation.juristic.as.ejb.entities.LocalRegionHome > net.templation.juristic.as.ejb.entities.LocalRegion > LocalRegion > > > > > I've encountered this problem without providing reference info > in jboss.xml as well as with: > > ejb/LocalRegion > ejb/LocalRegion > > :-) > > I was trying to look for LocalRegion bean using "ejb/LocalRegion" > as well as java:comp/env/ejb/LocalRegion. > > Thanks > > Pavel > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB references problem
David Ward wrote: > Also know that with local interfaces you can cast the looked-up > object right to it's home interface type. You only have to use > PortableRemoteObject.narrow(x,x) with remote interfaces. To clarify what I meant to say: Also know that with local interfaces you can cast the looked-up object right to it's **LOCAL** home interface type. You only have to use PortableRemoteObject.narrow(x,x) with remote **HOME** interfaces. Sorry if I confused, David ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB references problem
Comments injected below: -- Pavel Kolesnikov wrote: > Hello, > > another problems during switching to JBoss 3.0 (RC1 with Tomcat): > > 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? -- > > My ejb-jar.xml: > > LocalRegion > LocalRegionEJB > > net.templation.juristic.as.ejb.entities.LocalRegionHome > net.templation.juristic.as.ejb.entities.LocalRegion > > net.templation.juristic.as.ejb.entities.RegionEJB > Container > False > 2.x > Region > java.lang.String > regionId > > regionId > > > regionName > > > > > OptionsBrowser > net.templation.juristic.as.ejb.sessions.OptionsBrowserHome > net.templation.juristic.as.ejb.sessions.OptionsBrowser > net.templation.juristic.as.ejb.sessions.OptionsBrowserEJB > Container > Stateless > False > > ejb/LocalRegion > Entity > net.templation.juristic.as.ejb.entities.LocalRegionHome > net.templation.juristic.as.ejb.entities.LocalRegion -- David> Use local-home and local instead of home and remote above. -- > LocalRegion > > > > > I've encountered this problem without providing reference info > in jboss.xml as well as with: > > ejb/LocalRegion > ejb/LocalRegion > -- 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. David> HOWEVER, in jboss.xml make sure you use local-jndi-name instead of jndi-name here like this: LocalRegion yourcompany/yourapp/LocalRegion -- > :-) > > I was trying to look for LocalRegion bean using "ejb/LocalRegion" > as well as java:comp/env/ejb/LocalRegion. -- David> After the changes I suggested you should be able to lookup "java:comp/env/ejb/LocalRegion" from your OptionsBrowserBean. David> Also know that with local interfaces you can cast the looked-up object right to it's home interface type. You only have to use PortableRemoteObject.narrow(x,x) with remote interfaces. -- > > Thanks > > Pavel -- David> Hope this helps. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB references problem
Hello, another problems during switching to JBoss 3.0 (RC1 with Tomcat): 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". My ejb-jar.xml: LocalRegion LocalRegionEJB net.templation.juristic.as.ejb.entities.LocalRegionHome net.templation.juristic.as.ejb.entities.LocalRegion net.templation.juristic.as.ejb.entities.RegionEJB Container False 2.x Region java.lang.String regionId regionId regionName OptionsBrowser net.templation.juristic.as.ejb.sessions.OptionsBrowserHome net.templation.juristic.as.ejb.sessions.OptionsBrowser net.templation.juristic.as.ejb.sessions.OptionsBrowserEJB Container Stateless False ejb/LocalRegion Entity net.templation.juristic.as.ejb.entities.LocalRegionHome net.templation.juristic.as.ejb.entities.LocalRegion LocalRegion I've encountered this problem without providing reference info in jboss.xml as well as with: ejb/LocalRegion ejb/LocalRegion :-) I was trying to look for LocalRegion bean using "ejb/LocalRegion" as well as java:comp/env/ejb/LocalRegion. Thanks Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user