How do I bind an arbitrary string to JNDI in JBoss EAP 6? I used to
do it through org.jboss.naming.JNDIBindingServiceMgr MBean in
previous EAP version.
InitialContext ctx = new InitialContext();
ctx.bind("varName", "value");
If you use that code inside of a JBoss instance you can bind variables into jndi. Remember to use the correct format for varName to bind the variable in the desired scope.