简体   繁体   中英

How to call Clustered EJB application in weblogic server from a client application

I have created a cluster in weblogic server with two managed servers. My admin server is listing on 192.168.25.30:7001 and other two managed servers are listing on 192.168.25.30:7003 and 192.168.25.30:7005 . As i want to call the EJB application deploy on this cluster I have developed a client application. I used the 192.168.25.30:7003 address as the remote address to call from the client. When the both managed servers up and running my application works fine. But I want to run the application server if one manage server is down. When the 192.168.25.30:7005 is down it works fine. But when 192.168.25.30:7003 is down client requests doesn't forward to other server.
Please advice me is my approach correct for set up the weblogic cluster. And can i used one of the managed server address to call from the client application?

You have to do the look-up for the cluster, not only for a server. Here is an example on how to do this on WebLogic.

Problem in your approach is that you are looking up a specific managed server instance instead of the cluster/Load balancer, so you always hit the same managed instance every time.

As already answered, you need to lookup on the WL cluster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM