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 Java / JMS » Error 2033 remote server

Post new topic  Reply to topic
 Error 2033 remote server « View previous topic :: View next topic » 
Author Message
sandeepp@cislworld.com
PostPosted: Thu Apr 12, 2007 6:02 am    Post subject: Error 2033 remote server Reply with quote

Newbie

Joined: 12 Apr 2007
Posts: 6

HI

I have MQ series running in another district when i put messages
to input queue the messages are going

and try to get message from input queue it
gives me 2033 error.

input queue is a local queue so i can do put and get on it.

please let me know regarding this.........
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 12, 2007 6:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This is almost a double-post.

You're either trying to get messages that aren't on the queue, haven't been committed, or you're asking for messages by MsgId or CorrelId when there isn't a message on the queue (that's been commited) with that MsgId or CorrelId.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sandeepp@cislworld.com
PostPosted: Thu Apr 12, 2007 6:13 am    Post subject: Error 2033 remote server Reply with quote

Newbie

Joined: 12 Apr 2007
Posts: 6

jefflowrey wrote:
This is almost a double-post.

You're either trying to get messages that aren't on the queue, haven't been committed, or you're asking for messages by MsgId or CorrelId when there isn't a message on the queue (that's been commited) with that MsgId or CorrelId.

----------------------------------------------------------------
hi

how can i check it is commited or not as it is in remote place.

i am just trying a simple get message :
code is like this

string QueueName = "ADD";
string message = "";
MQQueueManager out_qm = new MQQueueManager(QueueManagerName, ChannelName, Connection);
MQQueue out_queue = out_qm.AccessQueue(QueueName, MQC.MQOO_INPUT_SHARED | MQC.MQOO_INQUIRE | MQC.MQOO_FAIL_IF_QUIESCING);
MQMessage out_msg = new MQMessage();
out_msg.Format = MQC.MQFMT_STRING;

try
{
out_queue.Get(out_msg);
message = out_msg.ReadString(out_msg.MessageLength);
Console.WriteLine("MQQueue::Message " + message);
}

catch (MQException mqexp)
{
if ( out_queue.ReasonCode == 2033)
Console.WriteLine("no messages in queue ");
else
Console.WriteLine("MQQueue::Get ended with " + mqexp.Message);

}
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 12, 2007 6:20 am    Post subject: Re: Error 2033 remote server Reply with quote

Grand High Poobah

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

sandeepp@cislworld.com wrote:

how can i check it is commited or not as it is in remote place.


If the queue is remote how can you get from it? Are you cliented onto the remote manager? What am I not getting?

Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.

You'll find this behaviour docuemented in the Application Programming manuals.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 12, 2007 6:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to create a new MQMessage object for every Get.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sandeepp@cislworld.com
PostPosted: Thu Apr 12, 2007 6:25 am    Post subject: Re: Error 2033 remote server Reply with quote

Newbie

Joined: 12 Apr 2007
Posts: 6

Vitor wrote:
sandeepp@cislworld.com wrote:

how can i check it is commited or not as it is in remote place.


If the queue is remote how can you get from it? Are you cliented onto the remote manager? What am I not getting?

Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.

You'll find this behaviour docuemented in the Application Programming manuals.


The Queue is local queue on the remote server.....
ya i am cliented how to commit please hep me
Back to top
View user's profile Send private message
sandeepp@cislworld.com
PostPosted: Thu Apr 12, 2007 6:27 am    Post subject: Reply with quote

Newbie

Joined: 12 Apr 2007
Posts: 6

jefflowrey wrote:
You need to create a new MQMessage object for every Get.


why we need to do it.......
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 12, 2007 7:13 am    Post subject: Re: Error 2033 remote server Reply with quote

Grand High Poobah

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

sandeepp@cislworld.com wrote:
ya i am cliented how to commit please hep me


Vitor wrote:

Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.

You'll find this behaviour docuemented in the Application Programming manuals.


Bear in mind this may not in fact be your problem.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 12, 2007 7:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

sandeepp@cislworld.com wrote:
jefflowrey wrote:
You need to create a new MQMessage object for every Get.


why we need to do it.......


That is left as an exercise.
_________________
I am *not* the model of the modern major general.
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 Java / JMS » Error 2033 remote server
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.