Sorry forgot to mention I've got the following in my ejb-jar.xml file
<ejb-ref>
<ejb-ref-name>ejb/BPackage.Bc</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>test.BPackage.BcHome</home>
<remote>test.BPackage.Bc</remote>
<ejb-link>BPackage.Bc</ejb-link>
</ejb-ref>
Cheers
Jay Walters
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 10:04 AM
To: JRun-Talk
Subject: EJB to EJB - Initial Context probs
I didn't notice any examples or docs explainaing how to call an
EJB from within an EJB, so I'm using the same method that I've used
for other app servers.
In the EJB's create method, I get a new InitialContext( ), which is
used to do lookups on the other EJB's that might be called. My
problem is that when JRun hits this piece of code, it throws a
java.io.NotSerializableException: javax.naming.InitialContext.
Sure, I can see that an InitialContext might not implement the
Serializable interface, but why is JRun throwing it in the first place?
It works just fine for any other app server we've tried (Orion, JBoss,
Weblogic)!
The only reason I can think it would try to serialize is if we've
crossed some module boundary in JRun. In this instance, I've got a
bean (standard bean) that has been instantiated from a JSP page in
the web server which, through JNDI, is attempting to create the
instance of the EJB in which the InitialContext class is instantiated.
Can someone explain this??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists