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

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

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");


Is there any documentation that describes what each of these settings
actually control?
Is there any documentation that describes how to set-up such a commonly used
configuration?


-Mike


-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 12:56 AM
To: jBoss
Subject: Re: [jBoss-User] HELP ! client doesnt run on remote machine


Hey

Tobias wrote:
> I am still trying to get this working. I now tried the test suite. The
> suite runs if started on the same machine on which the server is
> located.
> But as soon as I transfer the test suite to a remote machine it fails.
> It gets the initial context (test 1) but the first lookup fails (test
> 2).
> Again, it states it is not allowed to connect to the localhost. But I
> DID provide a proper jndi.properties file, I think:
> 
> java.naming.factory.initial  = org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url     = krypton.company.com
> java.naming.factory.url.pkgs = org.jboss.naming
> 
> There is NO other jndi.properties file around. The server is a linux
> (Redhat 6.2) machine and the client a Win 2000 machine. And yes, I did
> adjust java.policy.
> 
> What to do ? HELP !

Try changing jboss.properties, java.rmi.server.hostname=localhost to
java.rmi.server.hostname=<somehost>

That's most likely it.

This should not be there. Did I do that? :-(

/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]

Reply via email to