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 (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Faraz,

I had the same problem and my error was that I was using the internal Msg Server port (e.g 3900) instead of HTTP Msg Server port (8100).

Which value are you using as <msg_server_port>?

This value should be the HTTP Msg Server Port: Default value is 81XX where XX is the Central Services instance number (SCS). You can get this value from J2EE Visual Admin Tool going to "Message Info" service (see parameters tab, param ms/http_port).

You should also check the detailed message of NamingException you are getting in "new InitialContext()".

Best Regards,

Jorge

Answers (0)