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]

Reply via email to