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

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

    Mark Evans Newbie

      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):







      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?