cancel
Showing results for 
Search instead for 
Did you mean: 

Load balancing for EJBs using message server

Former Member
0 Kudos

According to the following help document, for load balancing of the EJB client calls, we can specify the message server which can perform the load balancing and redirect the request to the running server.

Help Document:

Use of the Message Server for Load Balancing Between Java Instances:[http://help.sap.com/saphelp_erp2005/helpdata/en/b2/732b41a52bef23e10000000a155106/frameset.htm|http://help.sap.com/saphelp_erp2005/helpdata/en/b2/732b41a52bef23e10000000a155106/frameset.htm]

We have tried to use this on our server but the InitialContext always throws NamingException for the message server. It works fine when we try to connect to the actual server instance. We are using WAS 7.0 sp11.

Code:

p.put(Context.PROVIDER_URL, "sapms://<msgserver_host>:<msgserver_HTTP_port>"); FAILS with Naming Exception

p.put(Context.PROVIDER_URL, "<host>:<P4_port>"); WORKS

Can anybody elaborate on this issue? Is this a bug?

Faraz

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Faraz,

can you elaborate more how you are connecting to message server. http or https?

It is not able to find the JNDI registry while connecting through message server URL.

Can you elaborate the process and also a bit more detailed code.

Regards,

Piyush