Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQ base Java vs. MQ JMS support

Status
Not open for further replies.

siqizhang

Programmer
Aug 3, 2004
2
CA
We have developed JMS based app and it is now going to
talk with client from other platforms (C++).
Must we rewrite our code iin MQ base java in order
to make it talk to C++?

Second question, we have a queue manager cluster and
we need now to keep sending messagers to a particular
queue instance. It seems that we can do it only
with MQ base java API (MQOEN with MQOO_BIND_ON_OPEN),
is this right? now way to do it with JMS because
cluster is not addressed in JMS, right?

Can we mix MQ JMS code and MQ base java code together?
is it recommanded?

Thanks,
 
1) No, a JMS app can exchange messages with a C++ app. However, JMS messages are in a specific format (using XML). See the FAQ for what you need to specify to send a on-JMS messge from a JMS application.

2) JMS applications can use cluster queues but you must ensure that the QMgr name for the queue is blank in your JNDI directory entry.

3) Base Java and JMS can be mixed freely in a program. I'm not aware of any recommendations not to do this but you'll need to establish separate conections to the QMgr from each.

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top