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 » Putting Messages to MQ

Post new topic  Reply to topic
 Putting Messages to MQ « View previous topic :: View next topic » 
Author Message
Nroblex
PostPosted: Tue May 13, 2008 5:38 am    Post subject: Putting Messages to MQ Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 11

Hello Profs!

I have a question I might get help with?

I want to put messages on an MQ server from a client written in C#. The client runs as a windows service and on that machine MQ is not availible.

I just want to post the message to the queue? How do I do this. Before I used this code :

"mqManager = new MQQueueManager("MQXXX");

sendQueue =
mqManager.AccessQueue("XXX", MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);

//SKICKA MEDDELANDE

MQMessage sendMessage = new MQMessage();
MQPutMessageOptions pmo = new MQPutMessageOptions();


//Specificera att vi vill ha svar från server (report)
sendMessage.Report = MQC.MQRO_COA_WITH_DATA;

sendMessage.WriteString(Message);
sendMessage.Format = MQC.MQFMT_STRING;
sendMessage.Persistence = 1;
sendMessage.MessageType = MQC.MQMT_REQUEST;

sendMessage.ReplyToQueueName = "PMCIncomming"; //txtQueueIncomming.Text;


sendQueue.Put(sendMessage, pmo);

But this assumes that I have a MQ server installed, because I get "No response queue" back

I just want to post message from client, no server availible??

Many thanks in advance!

//Nroblex
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 13, 2008 5:50 am    Post subject: Re: Putting Messages to MQ Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Nroblex wrote:

I just want to post message from client, no server availible??


Then use a client connection not a server one. Check the documentation (especially the Clients manual) for configuration details.

This is the same issue as you posted here. No matter how many time you post the same question, the advice is unlikely to change.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Putting Messages to MQ
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.