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 API Support » C#: Different ways to "Put" Message

Post new topic  Reply to topic
 C#: Different ways to "Put" Message « View previous topic :: View next topic » 
Author Message
bkissinger
PostPosted: Wed Sep 22, 2004 7:48 am    Post subject: C#: Different ways to "Put" Message Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Sep 22, 2004 8:41 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
kirani
PostPosted: Wed Sep 22, 2004 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » C#: Different ways to "Put" Message
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.