I think this is not really a HornetQ question but a how to use jndi in tomcat question. HornetQ just happens to use the jboss naming server to register objects in JNDI. I would take alook at the tomcat jndi docs
I agree with Andy this is more a Tomcat question.
However, it would be wonderful if you could share your experiences with integrating this with Tomcat. A blog about this would be nice.
From the point of view of HornetQ this should be simple, as you could use HornetQ with zero dependencies. You just need Netty if you are using sockets.