-
1. Re: WildFly 14 domain JMX remoting by
mayerw01 Sep 29, 2019 6:14 AM (in response to aquaforce85)Apparently your parameters are not correct.
You may look into the ejb-remote example of WildFly quickstart.in RemoteEJBClient.java there are following lines:
final Hashtable<String, String> jndiProperties = new Hashtable<>();
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
if(Boolean.getBoolean(HTTP)) {
//use HTTP based invocation. Each invocation will be a HTTP request
jndiProperties.put(Context.PROVIDER_URL,"http://localhost:8080/wildfly-services");
} else {
//use HTTP upgrade, an initial upgrade requests is sent to upgrade to the remoting protocol
jndiProperties.put(Context.PROVIDER_URL,"remote+http://localhost:8080");
}
final Context context = new InitialContext(jndiProperties);
...
return (RemoteCalculator) context.lookup(...;