cluster-computingejb-3.0apache-tomeeiiop

Web server to multiple ejb server call using tomee


I am using TomEE server and i want to deploy my ejb application to multiple instances and want to access it using a web application. I want to add a load balancer between web application and ejb application. How can i achieve this.

I already have a load balancer for web application multiple instances using mod_jk,but i need this configuration somewhere in INITIALCONTEXT properties file.

Attaching a pic of how i want to build my app architecture.architecture pic

I'm struggling in this from quite some time. Any help will be appreciable.


Solution

  • We can use TOMEE multipoint discovery feature using failover in initial context PROVIDER URL and give multiple URL. multipoint.properties file we add in conf.