ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » transport type setting in JMS MQseries program

Post new topic  Reply to topic
 transport type setting in JMS MQseries program « View previous topic :: View next topic » 
Author Message
joecherian
PostPosted: Fri Jan 10, 2003 3:02 am    Post subject: transport type setting in JMS MQseries program Reply with quote

Novice

Joined: 15 Dec 2002
Posts: 23
Location: India

Hello

i have a situation as mentioned follows.My queue manager is located in machine 1 (mc 1) and my application is located in machine 2 (mc2)

i want this application in mc2 to put messages to mc1

for this i wrote a java program which uses JMS classes to access the MQSeries..

when i tried to run the program with
setTransportType as JMSC.MQJMS_TP_BINDINGS_MQ then it gave an exception

but when i set transport type as JMSC.MQJMS_TP_CLIENT_MQ_TCPIP, it worked fine.

But my client insists me to use setTransportType as JMSC.MQJMS_TP_BINDINGS_MQ. There fore can any one tell me as to how can i put messages from mc2 to mc1 with setTransportType set as JMSC.MQJMS_TP_BINDINGS_MQ.

Thanks a lot.

regards

Joe Cherian
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
anjan34
PostPosted: Fri Jan 10, 2003 7:48 am    Post subject: Reply with quote

Newbie

Joined: 19 Aug 2002
Posts: 5

Hi Joe,
The transport type JMSC.MQJMS_TP_BINDINGS_MQ can be only used when the application and the QueueManager are on the same m/c. In binding mode MQ uses native calls to put the message in the Queue. But if you are putting the message using Client mode(TCP/IP) it cannot use the native calls.
Back to top
View user's profile Send private message
joecherian
PostPosted: Fri Jan 10, 2003 6:14 pm    Post subject: Reply with quote

Novice

Joined: 15 Dec 2002
Posts: 23
Location: India

Hello,
thanks but my requirement is that i want to put messages to a remote queue using bindings mode..

how can i do that,,? can i use remote definition of a queue in my machine, then treat it as local queue and then use bindings mode..?

then in that case, how should i define the channels..? and more over what type of channels should be used?
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bmccarty
PostPosted: Sun Jan 12, 2003 4:30 pm    Post subject: Yes, you will have to define a remote queue... Reply with quote

Apprentice

Joined: 18 Dec 2001
Posts: 43

If you want to use bindings mode put get the message to a remote queue manager you will have to install MQ Server locally then define a sender, remote queue and transmission queue localy. Then define the real queue and the receiver channel on your remote machine. This would be the typical installation shown in getting started or admin guide.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » transport type setting in JMS MQseries program
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.