There's a shortcut which I found after lots of sifting through online resources/specs and
Summary:
1. you just need to create your own jndi.properties like a regular .properties file (start a plaintext file in your
IDE and rename .properties, or, just a basic text editor like vi or notepad)
2. set the JMS properties to the location of your actual JMS server, some optional config, and any Topic or Queue names you want to create
3. package the jndi.properties as a .jar and include it in your buildpath (simply add as a library in your IDE and it will automagically add to your buildpath)
My sample jndi.properties for ActiveMQ:
Check these out for more info:
ActiveMQ -
http://activemq.apache.org/jndi-support.html
jBoss -
http://docs.jboss.org/jbossmessaging/docs/usermanual-2.0.0.beta1/html/using-jms.html