Got it working using the example on https://docs.jboss.org/author/display/AS7/Creating+Programatic+JNDI+Bindings
Reply to this message by going to Community
Start a new discussion in JBoss AS7 Development at Community