0

I am using Jelastic to easily deploy a cluster of Glassfish servers. As load balancer, a NGINX server is also placed front of this cluster. Basically, each request goes first to the NGINX server that chooses to which Glassfish server to send the request.

Now I've deployed a simple application with a remote EJB on the cluster by following this tutorial. It works fine. Everytime I launch the application, I get an instance of the EJB from a different machine. However, all calls to this EJB will always be processed by the same machine until I restart the application.

What I would like is, everytime I call a method from the remote EJB, it is processed by a different machine in the cluster. What I did is:

Unfortunately, problem is still remaining... Someone would have any clue why? Thank you

ZouBi
  • 763
  • 1
  • 7
  • 17
  • Curious why you want to use a different machine for each request? (Also presuming that you restarted after those conf changes?) – Damien - Layershift Apr 30 '14 at 09:12
  • To distribute some processing, see my poste here: http://stackoverflow.com/questions/23236651/parallelize-a-process-on-several-servers-with-ejb – ZouBi Apr 30 '14 at 09:32
  • I checked your other post. I think your approach might be the wrong way around; see my answer there for a possible alternative. – Damien - Layershift May 01 '14 at 10:16

0 Answers0