9 Replies Latest reply on Aug 14, 2014 2:40 AM by Maurizio Mueller

    Could not register a EJB receiver.

    david limkys Newbie

      I'm trying to migrate from jboss as 7 to wildfly, I managed to deploy my ear on WildFly but for some reason i cant connect to the EJB.


      my sample code is a follows:


      Properties clientProperties = new Properties();
        clientProperties.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
        clientProperties.put("remote.connections", "default");
        clientProperties.put("remote.connection.default.port", 8080);
        clientProperties.put("remote.connection.default.host", localhost);
        clientProperties.put("remote.connection.default.username", David);
        clientProperties.put("remote.connection.default.password", 12345678);
        clientProperties.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");

        EJBClientContext.setSelector(new ConfigBasedEJBClientContextSelector(new PropertiesBasedEJBClientConfiguration(clientProperties)));

        Properties properties = new Properties();
        properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
        Context context = new InitialContext(properties);


      After some debugging i can see that i get the following error WARN: Could not register a EJB receiver for connection to 127.0.0.1:8080

      But i dont know why, it works on jboss 7 and my firewall is down. I tried telnet 127.0.0.1 8080 and i get a connection.