Rickard,
This seems to have worked. I do not exactly understand why ... but my client
code successfully uses an EJB on the remote App server now.
I guess I can get the JNDI/RMI docs from Sun (to brush-up on what they
shoulf be doing)
Many thanks!
Regards,
Mike
-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 7:48 AM
To: jBoss
Subject: Re: [jBoss-User] HELP ! client doesnt run on remote machine
Hi!
Mike Newman wrote:
> I am having problems doing the same thing. This should be a very trivial
> task but I have burned almost a full day on it.
>
> I keep getting "Connection refused to host:" when I run my test client:
And
> yes I did change the:
>
> 1. JNDI.PROPERTIES entry:
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=<myRemoteServer>
> java.naming.factory.url.pkgs=org.jboss.naming
This is on client, right?
> 2. JBOSS.PROPERTIES entry:
> #java.rmi.server.useLocalHostName=true
> java.rmi.server.hostname=<myRemoteServer>
> #java.rmi.server.codebase=http://localhost:8080/
> jdbc.drivers=oracle.jdbc.driver.OracleDriver
Try commenting out (use #) the hostname entry.
> 3. I also hard-coded the URL my client code:
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url",
> "<myRemoteServer>:1099");
Well, that should work although you would have to remove the
jndi.properties file or it would override the above.
> Is there any documentation that describes what each of these settings
> actually control?
The RMI and JNDI specs do.
> Is there any documentation that describes how to set-up such a commonly
used
> configuration?
Don't think so, but there should be...
/Rickard
--
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]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]