I\'m using JBoss Server for EJB And I need JNDI in console app to get reference of session bean, console app code looks like this
import java.util.Properties
You need dependency:
org.jboss
jboss-remote-naming
https://mvnrepository.com/artifact/org.jboss/jboss-remote-naming/
For WildFly you can use org.wildfly.naming.client.WildFlyInitialContextFactory form:
org.wildfly
wildfly-naming-client
https://mvnrepository.com/artifact/org.wildfly/wildfly-naming-client
You can use bom file for import:
org.wildfly
wildfly-ejb-client-bom
pom
https://mvnrepository.com/artifact/org.wildfly/wildfly-ejb-client-bom