I am confused.
The message sender is the jms client, not the jms server.
Can you explain in more detail since I do not really understand what you are trying to do?
I wanted to configure the ConnectionFactory and the Destination in the Tomcat server so as the JMS provider would be the Tomcat.
The project need is, there may be multiple message subscribers and one message publisher. And the publisher component would be sitting in the Tomcat server. So I need to configure the ConnectionFactory and the Destination in the Tomcat server for which I need to equip the Tomcat server with a JMS provider. And I was wondering if I could use JBoss Messaging with Tomcat.
So far I couldn't find any support in this regard and the JBossMQ is completely gone, as I could find only 1 usefull page thru internet and that even is of no use for me. The JBossMQ Wiki.
Sorry, I still don't understand :(
You want to make Tomcat into a jms provider?? That doesn't make a lot of sense to me.
Sorry for not making the point clear.
As like ActiveMQ which can be used to equip Tomcat with JMS, I need to used JBoss Messaging to equip Tomcat with JMS. Actually now we have decided to use JBoss instead of Tomcat because of some other reason and the problem is solved in another way. :-)
Thank you for your time. But still if you know how to configure JBoss Messaging in Tomcat let me know so that I can learn.
I still don't really understand what you mean "equip Tomcat with JMS", do you mean you want to do JMS operations from within a jsp or a servlet?
If so, then you can do this like you do from any other program.
Just lookup the ConnectionFactory and Destination objects from JNDI, and do your standard JMS operations on them.
This is just standard JMS and should be no different in Tomcat than any any other piece of code.
'Just lookup the ConnectionFactory and Destination objects from JNDI, and do your standard JMS operations on them.
This is just standard JMS and should be no different in Tomcat than any any other piece of code.'
Since I am new to jms I have no idea even how to start to do what you say. Could you point me in the right direction.