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:
<entity>
<ejb-name>LocalRegion</ejb-name>
<display-name>LocalRegionEJB</display-name>
<local-home>net.templation.juristic.as.ejb.entities.LocalRegionHome</local-home>
<local>net.templation.juristic.as.ejb.entities.LocalRegion</local>
<ejb-class>net.templation.juristic.as.ejb.entities.RegionEJB</ejb-class>
<persistence-type>Container</persistence-type>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Region</abstract-schema-name>
<prim-key-class>java.lang.String</prim-key-class>
<primkey-field>regionId</primkey-field>
<cmp-field>
<field-name>regionId</field-name>
</cmp-field>
<cmp-field>
<field-name>regionName</field-name>
</cmp-field>
</entity>
<session>
<ejb-name>OptionsBrowser</ejb-name>
<home>net.templation.juristic.as.ejb.sessions.OptionsBrowserHome</home>
<remote>net.templation.juristic.as.ejb.sessions.OptionsBrowser</remote>
<ejb-class>net.templation.juristic.as.ejb.sessions.OptionsBrowserEJB</ejb-class>
<transaction-type>Container</transaction-type>
<session-type>Stateless</session-type>
<reentrant>False</reentrant>
<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>
<ejb-link>LocalRegion</ejb-link>
</ejb-ref>
</session>
I've encountered this problem without providing reference info
in jboss.xml as well as with:
<ejb-ref>
<ejb-ref-name>ejb/LocalRegion</ejb-ref-name>
<jndi-name>ejb/LocalRegion</jndi-name>
</ejb-ref>
:-)
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