An example of how to create a programatic JNDI binding
Java

README.md

THIS PROJECT IS DEPRICATED

As of AS 7.1 this is no longer relevant (and will not actually work), you can just use standard Context.bind().