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!

Do u need MQ Client when using java?

Status
Not open for further replies.

arunrathna

Programmer
Apr 27, 2001
20
IN
Hi,
I use JMS (on NT platform) to access a queue on the mainframe. I am able to access the queue with just the JMS APIs. Then, where does MQ Client fits in here. Need I not buy a MQ Client piece seperately when I move into production?
 
If by 'mainframe' you mean MVS or OS/390 then the first question is, do you have the client attachment feature. Unlike the other platforms, if you want to connect MQ clients to the mainframe you need to buy (yes, really!) and enable CAF.

Assuming you have this then clients should be able to connect just like any other platform. Mind you, this also assumes you have TCP/IP available on your mainframe as JMS doesn't work over SNA.

If you don't have CAF then you'll need to connect (either directly or as an MQ client) to a non-mainframe QMgr which *is* connected to the mainframe QMgr. Then you can send and receive messages via this 'proxy' QMgr.

Finally, if you're asking about how to specify a client connection in JMS rather than a local one, you need to call these methods on your destination:

setHostName(myhost)
setPort(nnnn)
setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP)
the default is local, i.e. JMSC.MQJMS_TP_BINDINGS_MQ

Of course to maintain compatibility with the JMS standard you would set these in your JNDI entry and then do a lookup from your program to retrieve them. Does anyone actually do this?

Hope this helps,
Paul
 
Hi,
My MQ Manager on OS390 does have the CAF I believe. My question was whether I have to buy a separate product called MQ Client for NT and AIX, if I need to connect to the Queue on the mainframe thru JMS. As u had said, I do access the queue with JNDI settings.

Thanx,
Rathna.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top