I am trying to make a remote call to a remote object running as part of an application installed on Websphere. The final solution would be an RPG for a local java cilent to call a remote service that calls a web service. This basically means that we have one set of codes for calling a web service and processing XML analysis, and the iSeries does not have direct access to the Internet.
ISeries WebSphere RPG Server> Java -> Java-> Webservice
In my RMI server class, I register like this
Naming.rebind("rmi://127.0.0.1:2813/CAPostcodeService", obj);
If I use jdk in my local machine, I run "rmiregistry" and can connect normally, like connecting to a class if it works in Websphere. I assumed that websphere runs the rmi server on port 2813, as indicated in the admin console.
I'm currently having trouble reading
CAPostcodeRMILookup exception: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
I'm new to using RMI, I can assume a lot / a little: S
Thanks Scottyab
source
share