|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C#: Different ways to "Put" Message |
« View previous topic :: View next topic » |
Author |
Message
|
bkissinger |
Posted: Wed Sep 22, 2004 7:48 am Post subject: C#: Different ways to "Put" Message |
|
|
Newbie
Joined: 10 Mar 2004 Posts: 6
|
Hello all,
I am programming in C#. There are two ways to put a message into a
queue:
a) Calling put on the MQQueueManager object or
b) Createing a Queue-Object and calling put on this one
It seems that "a" is the easier way, because you dont need to create extra queue Objects.
Are the two ways equal considering performance and functionality?
Greetings,
Bernd |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Sep 22, 2004 8:41 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I'm not a C# person, but I'm guessing the two methods are equivalent to MQPUT and MQPUT1. The MQPUT requires that you have already opened a queue. The MQPUT1 will open the queue for you and put the message. If you are only going to put a single message, the MQPUT1 version is the way to go. If you are going to be putting multiple messages, open the queue and then MQPUT all of the messages. It will be quicker. |
|
Back to top |
|
 |
kirani |
Posted: Wed Sep 22, 2004 10:39 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
a) is equivalent to MQPUT1.
b) is equivalent to MQPUT. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|