I have been recently assigned at work to figure out how to use JBoss to connect to MQSeries through JNDI. My problem (and frustration) is that I know none of these technologies. I have used Tomcat before, but never used nor worked with JNDI or any messaging service. I am quit lost where to too begin and don�t have the luxury of taking time to figure out as much as I would like.
Where would I begin?
For now, I am just trying to use JMS and JBoss through Eclipse. Is there a simple example application with instructions on how to do this? What JBoss files need to be edited? What libraries are needed? What does the code look like? I�m still confused as to what JMS and JNDI are and how they relate. Once I figure that out, I will worry about MQSeries.
I think this will help you to get an idea about jbossmq and jms
Joined: Aug 13, 2001
Ok, I think I got it figured out� let me know if this is right. I just need to configure the JBoss JNDI with the MQSeries server/queue information. Then call the JNDI api to populate the JMS api with the right values to send and receive messages from MQSeries. Is this right? Does someone have an example of how to configure the JNDI properties file and use it to send/retrieve a message from MQSeries?
Ambily G Nair
Joined: Aug 21, 2004
I have tried jbossmq/jms with the following code and I was able to send and receive messages.