EJBCLIENT000064 / WFNAM00049 / WFNAM00025 ... is deprecated in JBoss EAP 7.1

Solution Unverified - Updated

Environment

Red Hat Enterprise Application Platform (EAP) 7.1

Issue

EJBCLIENT000064: org.jboss.ejb.client.naming.ejb.ejbURLContextFactory is deprecated; new applications should use org.wildfly.naming.client.WildFlyInitialContextFactory instead
WFNAM00049: Usage of the legacy "remote.connections" property is deprecated; please use javax.naming.Context#PROVIDER_URL instead
WFNAM00025: org.jboss.naming.remote.client.InitialContextFactory is deprecated; new applications should use org.wildfly.naming.client.WildFlyInitialContextFactory instead

Resolution

The application client is using the EJB Client Scoped Context to configure remote connections, this method of configuration has been deprecated in favor of the simplified WildFlyInitialContextFactory as shown in How configure an EJB client in EAP 7.1

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.