|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQQueueManager Constructor Error (C#) |
« View previous topic :: View next topic » |
Author |
Message
|
andylichey |
Posted: Mon Oct 31, 2005 12:46 pm Post subject: MQQueueManager Constructor Error (C#) |
|
|
Newbie
Joined: 31 Oct 2005 Posts: 1
|
Hello,
I'm very new to MQSeries, but I've been tasked to write a web service based integration which involving reading and writing to MQSeries queues. Unfortunately, to make this tougher, I don't have access to anyone with any real experience using MQSeries.
What I'm trying to do now is to write xml that my service has received into a queue. The problem is, when I try to instantiate the MQQueueManager with the manager name, I get the following exception thrown:
CompCode: 2, Reason: 2063
"Error in the application."
Based on everything I can find, this is a security error, but that's about all I've been able to figure out.
My application is a C# web service. The web application is running under the \MUSR_MQADMIN user under IIS on a Windows XP server.
Here is the code that I'm executing to instantiate the MQQueueManager:
// put the xml received into the MQ Series queue
String qMgrName = "QM_integration";
String qName = "Integration_OUT";
MQQueueManager qMgr;
MQQueue queue;
try
{
qMgr = new MQQueueManager(qMgrName);
queue = qMgr.AccessQueue(qName, MQC.MQOO_OUTPUT);
MQMessage message = new MQMessage();
message.WriteString("inserted by IntegrationService");
message.Format = MQC.MQFMT_STRING;
queue.Put(message);
queue.Close();
qMgr.Disconnect();
The exception is thrown on @: qMgr = new MQQueueManager(qMgrName);
ANY help anyone could give would be immensly appreciated! Thanks!
Andy |
|
Back to top |
|
 |
gunter |
Posted: Mon Oct 31, 2005 1:18 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
|
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
|
|
|
|