At 01:27 PM 27/11/99 +0100, Joerg Diederich wrote:
>I guess, it works. Now, I copy the classes ClientOp.class, Op.class,
>and OpHome.class to the client machine. Install jndi.jar,
>rmiregistry.jar, and providerutil.jar on that machine. Adjust the
>CLASSPATH to contain the jndi stuff as well as the client and
>interface classes.
You also need to copy the Stub files across to the client as well
for the rmi to use.
>When I start the client application on the client machine using
>the commandline
>
>java -Djava.naming.provider.url="rmi://a.b.c.d:1099/" sb.ClientOp
>
>where a.b.c.d is the IP address of the network card of my server, I get the following
>output:
>
>Cannot lookup UserTransaction: javax.naming.CommunicationException
> [Root exception is java.rmi.ConnectIOException:
> Error creating connection to: [w.x.y.z:1237]; nested exception is:
> java.net.SocketException: Das Netzwerk ist nicht erreichbar]
>
>where w.x.y.z is the IP address of the ISDN card (ippp0) in the server
>machine.
You might also check that you can connect to that port, perhaps you have some
firewall software or somethng blocking incomming packets from your
client machine (try a telnet w.x.y.z from the client to the server)
--
Subvert the dominant paradigm
http://www.cyber4.org/members/grumpy/index.html