Hi!
Jeremiah Johnson wrote:
> Okay, that brings up two points that I am a bit unclear about. 1) is your comment
>above referring to conf/jboss.properties and commenting out the line
>java.rmi.server.hostname=localhost?
Correct.
> If so, what role does it play because the server is still local to itself?
The problem is that "localhost" will be embedded in the container stub,
so that when a client tries to use it (through the wrapping EJBObject)
it will try to connect to localhost. Which obviously won't work.
> 2) sometime I see the line java.naming.factory.url.pkgs=org.jboss.naming; in
>jndi.properties, but I don't use it myself - what role does that line play?
If you want to use "jnp:" URL's to lookup beans. If your client should
access more than one EJB-server you can't just use new InitialContext();
what server should it point to? Instead you would use
"jnp://myhost/mybean" to talk to jBoss or
"iiop://otherevilserverhost/thedarksidebean" to talk to Some Other
Server. Your java.naming.factory.url.pkgs property would of course have
to be a list of JNDI namespace provider implementations though.
Makes sense?
/Rickard
ps. Note the subliminal message above >:-)
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]