Thanks... I thought the answer was along those lines but the library I'm using was constraining me to use JNDI. However I now looked into their source code and found a clean way around JNDI. Your answer got me motivated in the right direction, thankyou.
John 2011/5/23 Mikolaj Rydzewski <m...@ceti.pl> > On Mon, 23 May 2011 10:34:28 +0200, John Fletcher wrote: > > The challenge is that the JMS topics I want to make available to the >>> library depend on some runtime information, i.e. I want my application to >>> create the JMS topics dynamically. Is there a way that I can create these >>> JNDI resources at runtime from my application instead of having to >>> hard-code >>> them into Context.xml? >>> >> > So why do you want to use JNDI still? You can call factory method yourself. > Yes, this will tight you to specific JMS implementation. But do you plan to > migrate to different JMS provider? With very little effort you can configure > spring (is there anyone who does not use spring nowadays?) to hide direct > factory calls. > > -- > Mikolaj Rydzewski <m...@ceti.pl> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >