This content has been marked as final.
Show 1 reply
-
1. Re: Problems calling methods in session beans on second JBos
smeier Apr 26, 2007 7:58 AM (in response to dr-dive)Hi dr-dive,
I've tried it out and ran into the same problem. The reason for the problem might be, that I have a jndi.properties in my classpath, with the linejava.naming.provider.url=localhost
in it. The API doc for javax.naming.InitialContext http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/InitialContext.html says that the contents of a jndi.properties are somehow merged together with the properties explicitly provided to the constructor.
I solved the problem by removing the home- and remote-interfaces declaration from the ejb-jar.xml on the server that is supposed to perform the remote call. Perhaps there's a better solution but at least that worked for me.
Best regards,
Stefan