3 Replies Latest reply on May 22, 2018 9:45 AM by dmlloyd

    EJBCLIENT000064: org.jboss.ejb.client.naming.ejb.ejbURLContextFactory is deprecated

    mevans7

      When I do a lookup on an EJB from a remote client, I get the following INFO message:

       

      org.jboss.ejb.client.<clinit>(37)) #() #() EJBCLIENT000064: org.jboss.ejb.client.naming.ejb.ejbURLContextFactory is deprecated; new applications should use org.wildfly.naming.client.WildFlyInitialContextFactory instead

       

      Code is like:

       

      InitialContext id = new InitialContext(env); // See env below.

      String jndiName = "ejb:ear-file/ejb-package//bean-name!com.ejb.remote-class-name"; // Sanatized.

      myEjbRemote = ic.lookup(jndiName);

       

      I *think* this may be related to java.naming.factory.url.pkgs but everything I see says that value should be org.jboss.ejb.client.naming.

       

      I'm using an environment of the following when creating my InitialContext(env):

       

      env:

           java.naming.provider.url=https-remoting://my-host-name:8443,

           java.naming.factory.initial=org.wildfly.naming.client.WildFlyInitialContextFactory,

           java.naming.factory.url.pkgs=org.jboss.ejb.client.naming

       

      I'm using WildFly 12, OpenJDK 1.8.0_171-b10.

       

      I'm using the jboss-client.jar and jboss-cli-client.jar from the WildFly 12 bin/client directory.

       

      Any ideas on how to resolve this?