Both on the same machine, is this detected by using native lookup?
========= jboss-ejb-client.properties ======
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
#remote.connections=default, two
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.username=kiki
remote.connection.default.password=nopsw
=======================
{code}
Hashtable<String, String> p = new Hashtable<String, String>();
p.put(InitialContext.URL_PKG_PREFIXES,
"org.jboss.ejb.client.naming");
{code}
=========================
{code JNDI}
Hashtable<String, String> p = new Hashtable<String, String>();
p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"org.jboss.naming.remote.client.InitialContextFactory");
p.put(InitialContext.PROVIDER_URL, "remote://localhost:4447");
p.put(Context.SECURITY_PRINCIPAL,"user");
p.put(Context.SECURITY_CREDENTIALS, "user123");
{code}