Hi again!
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 !

Greets,

Tobi



Greg Pierce wrote:
> 
> I was having the same problem and found a solution :)
> 
> I went into the jndi.properties file in the bin directory and replaced
> localhost with the IP address of the machine that is servicing the request.
> Otherwise somehow the remote machine tries to look at 'localhost'. Bizarre!
> I think someones optimizations went awry :)
> 
> -----Original Message-----
> From: Tobias Frech [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 18, 2000 1:37 PM
> To: 'jBoss'
> Subject: RE: [jBoss-User] client doesnt run on remote machine
> 
> Thanks. OK, i'll check that. How does your jndi.properties on a remote
> machine look like ?
> Tobias
> 
> > -----Original Message-----
> > From: Rickard �berg [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 18, 2000 1:41 AM
> > To: jBoss
> > Subject: Re: [jBoss-User] client doesnt run on remote machine
> >
> >
> > Tobias wrote:
> > > I checked all the the .properties files on the remote
> > machine. There was
> > > one called orb.properties in j2ee.jar . I changed the name
> > of the file
> > > but got still the same error with my client. The client
> > still seems to
> > > be trying to connect to localhost. Any other ideas what
> > might be wrong ?
> >
> > Somewhere there is a jndi.properties file. Do this:
> > System.out.println(getClass().getResource("/jndi.properties"));
> > and see if you get a result or not.
> >
> > > Hey, all you guys out there. How does your code look like
> > for jBoss for
> > > getting the initial context and looking up an EJB ? Please post some
> > > exmaples ...
> >
> > Code? Simple:
> >
> > MyBeanHome beanHome = (MyBeanHome)new
> > InitialContext().lookup("mybean");
> >
> > providing that you have a proper jndi.properties file in classpath.
> >
> > /Rickard
> >


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to