Hi You can use failover:url1,url2 or failover:roundrobin:url1,url2 for instance to pass multiple instance. If you want a custom strategy just do N lookups and implement a proxy with the custom strategy - like circuit breaker for instance.
Le 16 sept. 2017 04:35, "VikasRathee" <vickyrathee...@gmail.com> a écrit : > Hi > > In my application , from web module, I want to access EJBModule deployed > on > multiple instances. > So I want to add something like load balancer while doing lookup. What i > need to do. > > / Properties properties = new Properties(); > properties.put(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.openejb.client.RemoteInitialContextFactory"); > properties.put(Context.PROVIDER_URL, > "http://127.0.0.1:8081/tomee/ejb"); > InitialContext ic=new InitialContext(properties);/ > > This code is working fine with one PROVIDER_URL, but if i'm giving other > URL > also with comma separated, i'm getting naming exception. > Is there anything like i can implement a EJB broker kind of thing which can > manage requests to multiple app servers. > > > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev- > f982480.html >