Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

EJB calls loadbalancing


Level 4


I call LiveCycle on JBoss 5.1 server (livecycle ES3 turnkey installation) using EJB API without problem on one machine.

When in cluster, I would like loadbalance calls between two nodes. But I'm unable to do that. All calls are processes by same node. I use such a simple code:

java.naming.factory.initial= org.jnp.interfaces.NamingContextFactory



Properties connectionProps = new Properties();

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);

HashMap<String,String> hmInput = new HashMap<String, String>();



for(int i=0;i<5;i++) {

     InvocationRequest ir = myFactory.createInvocationRequest("tst/NewProcess1", "invoke", hmInput, true);

     InvocationResponse ires = myFactory.getServiceClient().invoke(ir);

     System.out.println("Result: " + ires.getOutputParameter("c"));



According to JBoss documentation (, there should be round robin implementation and calls should be processed by both nodes.

Can you help me, please?


--- Jaroslav

0 Replies