the following code snippet works without problems calling to a Wildfly 9 server instance, but when it calls to a wildfly 10 server, fails saying:
WARN: Could not register a EJB receiver for connection to 192.168.1.47:8080 java.lang.RuntimeException: Operation failed with status WAITING at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:94)
public static void main(String[] args) throws NamingException {
Properties props;
props = new Properties();
props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
props.put("org.jboss.ejb.client.scoped.context", true);
props.put("endpoint.name","client-endpoint");
props.put("endpoint.remote.connectionprovider.create.options"
+ ".org.xnio.Options.SSL_ENABLED", false);
props.put("remote.connections", "default");
props.put("remote.connection.default.host", "192.168.1.47");
props.put("remote.connection.default.port", "8080");
props.put("remote.connection.default.connect.options"
+ ".org.xnio.Options.SASL_POLICY_NOANONYMOUS", false);
props.put("remote.connection.default.username", "carlos");
props.put("remote.connection.default.password", "1234");
Context context = (Context) new InitialContext(props).lookup("ejb:"); //failing line!!!
}
There are no diferences between the servers: both define the user carlos
with the given password, Both servers run in the same machine with the same IP Address and port (not at the same time of course!)... The only difference between them is the Wildfly Server Version!
The application Client uses the jboss-client.jar
according to the target wildfly...