-
1. Re: EJBCLIENT000409: No more destinations are available
sranjeeta May 4, 2018 2:56 PM (in response to vamshi1413)Adding some more information to the above thread.
When the Initial context is derived as below , it gives the error : No more destination - caused by Abrupt close on Remoting connection
Hashtable jndiProps = new Hashtable();
jndiProps.put("java.naming.factory.initial","org.wildfly.naming.client.WildFlyInitialContextFactory");
jndiProps.put(InitialContext.PROVIDER_URL, "remote://127.0.0.1:8080");
InitialContext context = new InitialContext(jndiProps);
When the initial context is derived as
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
env.put(Context.PROVIDER_URL, "http-remoting://127.0.0.1:8080");
InitialContext context = new InitialContext(env);
It gives the error : No more destination - caused by No such ejb found.
Which one is correct way of initializing the InitialContext?