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# and mq cluster

Post new topic  Reply to topic
 c# and mq cluster « View previous topic :: View next topic » 
Author Message
maxis
PostPosted: Fri Aug 04, 2006 12:58 am    Post subject: c# and mq cluster Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

Hi ..
In java/jms when we write and read a message from clustered queue we dont give queue manager name. How do i replicate the same thing in C#.


Task is to read and write from clustered queue from C# application. If someone is having code snippet will you please share it ....



thanks
M
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 04, 2006 1:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The only way to avoid specifying a queue manager name is by using a client connection - which uniquely identifies a particular queue manager by hostname/address, channel name and port number.

So take the client sample for C#.

Or are you looking for something like a JNDI equivalent for C#?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
maxis
PostPosted: Fri Aug 04, 2006 1:45 am    Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

when I pass '' - null, parameter to the following piece of code

oMQQueueManager = New MQQueueManager(sMQQueueManager, ConnProperties)

oMQQueue = oMQQueueManager.AccessQueue(sMQQueue, openOptions)

its throwing an error when I try to create the Queue object. Is there an alternate way to create the queue object ? or to pass the queue manager name as null ?.

Remember .. task is to write/read from a clustered queue ..


M
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 04, 2006 1:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Remember - there's nothing special about a clustered queue, except you can PUT to it from many places without additional administration work.

As to passing in Null...

don't do that.

Pass in "" instead.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
chinna
PostPosted: Fri Aug 18, 2006 12:27 am    Post subject: clustered queue connection in C# Reply with quote

Newbie

Joined: 27 May 2005
Posts: 8

Please try using the open option for the queue while using AccessQueue funtion in C# to connect to clustered queue.
AccessQueue(queueName, MQC.MQOO_INPUT_AS_Q_DEF + MQC.MQOO_FAIL_IF_QUIESCING);
I hope it will work.


Thanks
Chinna
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » c# and mq cluster
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.