Niroshan Abayakoon
Niroshan Abayakoon

Reputation: 921

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?

Upvotes: 0

Views: 1713

Answers (2)

Anugoonj
Anugoonj

Reputation: 575

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.

Upvotes: 1

Bogdan
Bogdan

Reputation: 944

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.

Upvotes: 1

Related Questions