Connect to rmi websphere server

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

+3
source share
2 answers

WebSphere RMI is not universal, treats it as internal, encompassing its own RJ / IIOP EJB invocation engine and WebSphere administration service. Port 2813 is for access to admin tools.

Application code running in WebSphere can expose remote EJBs, JMS queues, WebServices, or any HTTP requests / responses that you want to build for yourself.

- "" WebSphere, java?

+1

JMX.

+1

Source: https://habr.com/ru/post/1715623/


All Articles