Hello,
today I made another attempt to get JONAS1.5 session bean example
running in my environment:
On my server machine I executed:
cd $JONAS_ROOT/examples/src/sb
. $JONAS_ROOT/bin/config.env
rmiregistry &
EJBServer &
Then I can start the client program sb.ClientOp on the server machine
to get the following output:
Create a bean
Start a first transaction
First request on the new bean
Second request on the bean
Commit the transaction
Start a second transaction
Rollback the transaction
Request outside any transaction
ClientOp OK. Exiting.
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.
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.
Both machines are running SuSE Linux 6.2 (Kernel 2.2.10) and jdk1.1.7.
Where's my fault? Is there anybody who succeeded in running JONAS in a
similar environment? Any help is really appreciated!!!
Best regards,
Joerg Diederich