-
1. Re: urgent problem with EJB invocations from a remote client using JNDI ?!!!
mayerw01 Aug 31, 2016 12:25 PM (in response to kayvan.jamshidi)You should add the credentials to the jboss-ejb-client.properties
remote.connection.default.username=username
remote.connection.default.password=password
-
2. Re: urgent problem with EJB invocations from a remote client using JNDI ?!!!
kayvan.jamshidi Sep 1, 2016 6:01 AM (in response to mayerw01)private static Context createRemoteEjbContext(String host, String port) throws NamingException {
Hashtable<Object, Object> props = new Hashtable<>();
props.put(INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
props.put("jboss.naming.client.ejb.context", true);props.put("org.jboss.ejb.client.scoped.context", true);
props.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", false);props.put("remote.connections", "default");
props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", false);
props.put(Context.SECURITY_PRINCIPAL, "username");
props.put(Context.SECURITY_CREDENTIALS, "password");
props.put(PROVIDER_URL, "http-remoting://" + host + ":" + port);
props.put("remote.connection.default.host", host);
props.put("remote.connection.default.port", port);
props.put("remote.connection.default.connect.timeout", "15000");
return new InitialContext(props);}
already i have this config.
-
3. Re: urgent problem with EJB invocations from a remote client using JNDI ?!!!
mayerw01 Sep 3, 2016 4:39 AM (in response to kayvan.jamshidi)I experienced some issues when using this approach in the quickstart-10.x.
Did you try to configure the boss-ejb-client.properties file instead?