This content has been marked as final. Show 1 reply
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 line
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.