users@glassfish.java.net

Re: Glassfish Serialization blues...

From: <glassfish_at_javadesktop.org>
Date: Tue, 17 Jun 2008 13:56:16 PDT

I refactored the code to use the Local interface instead of the Remote interface to avoid Serialization. I accomplished this by placing these tags in the web.xml:

<ejb-local-ref>
<ejb-ref-name>AgencyAccessMgrBean</ejb-ref-name>
<local>com.cfms.data.agency.AgencyAccessMgrLocal</local>
<ejb-link>AgencyAccessMgrBean</ejb-link>
</ejb-local-ref>

and tweeked the session bean with @Stateless(name="AgencyAccessMgrBean")

This solves the web tier in regard to Serialization, though I now have jndi lookup errors within the ejb session tier so I must need a similar mapping in that tier as well. Do you know what .xml file and syntax would be involved for this in the ejb tier?

The web tier can reach a session bean fine, but if that bean needs to invoke another session I get jndi lookup NOT found on "AgencyAccessMgrBean", the same name that worked fine in the web tier.

Currently, I only have a simple persistence.xml in the ejb tier configuration that has an entry like:

<persistence-unit name="cfmsPU00" transaction-type="JTA">
<jta-data-source>jdbc/cfmsPool00</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
</persistence-unit>

Thanks,
J
[Message sent by forum member 'jameshr' (jameshr)]

http://forums.java.net/jive/thread.jspa?messageID=280844