Hi Folks,
Let me be much more explanatory this time.
I have a Simple MQJMS Pub/Sub program that uses JNDI lookup for
Administered Objects (i.e; TopicConnectionFactory and Topic). I am using
WebSphere 3.5 as a JNDI provider and MQSeries version is 5.1 on NT4.0. Now
I have been reading IBM Manual "MQSeries using Java" given at http://www-
4.ibm.com/software/ts/mqseries/library/manualsa/csqzaw04/csqzaw.htm#ToC
According to the manual I have to use a Tool
called JMSAdmin (it comes with MQSeries) to create administered Objects in
JNDI. I followed the instrustions and successfully created the
TopicConnectionFactory and Topic objects in JNDI. Now inorder to pub/sub
on a topic you have to do following things in your code:
1. Obtain a TopicConnectionFactory
2. Create a TopicConnection and start it
3. Create a TopicSession
4. Obtain a Topic from JNDI
5. Create TopicPublishers and/or
TopicSubscribers
I can successfully Obtain a TopicConnection Factory (step 1) but not able
to create a Topic connection (step 2) from the TopicConnectionFactory
instance. It results in an error:
MQJE001: Completion Code 2, Reason 2085
Connection problem: javax.jms.JMSException: MQJMS2006: MQ problem: com.ibm
.mq.MQException: MQJE001: Completion Code 2, Reason 2085
I have been digging around but still not able to figure out what other
setup I have to do to make my program running. It is very simple
application and I found similar applications on the web but don't see any
difference in the code. I am 100% sure that there is something that needs
to be done on MQSeries side. So Just wondering if anyone knows what step I
am missing as described above. I would be more than happy to share my
program if anyone is interested. Any Help will be much appreciated.
Thanks,
Rehan