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 » Can we add all the gmo.* options

Post new topic  Reply to topic
 Can we add all the gmo.* options « View previous topic :: View next topic » 
Author Message
harshvajra
PostPosted: Sun Feb 10, 2008 10:48 pm    Post subject: Can we add all the gmo.* options Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Hi,
I've simple doubt, we can add the gmo options
like gmo.options+=MQC.MQGMO_SYNCPOINT;
can we append the gmo.matchOptions to gmo.options
gmo.options+=gmo.matchOptions;
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Feb 11, 2008 1:24 am    Post subject: Reply with quote

Grand High Poobah

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

What happens when you try it?

Note that some options are mutually exclusive.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Feb 11, 2008 1:46 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

These options are numbers corresponding to a bit mask, so you can add them or OR them together.
Back to top
View user's profile Send private message
harshvajra
PostPosted: Mon Feb 11, 2008 2:45 am    Post subject: Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Yes, i've tried it dosen't make any difference.
Thanks
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Feb 11, 2008 3:06 am    Post subject: Reply with quote

Grand High Poobah

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

harshvajra wrote:
Yes, i've tried it dosen't make any difference.


Presumably you're not claiming that the addition or OR functions within Java do not succeed, but that you're getting unexpected results from the get with the options you believe you've set.

Perhaps if you tried posting the options you're trying to set, the expected results and the result's you're actually getting then we might be ablle to assist more. At the moment it's hard to tell if the options are not being set correctly, or if the options are fine but are not producing the results you expect.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
harshvajra
PostPosted: Mon Feb 11, 2008 8:43 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

I've encountered problem in appending the gmo.* options.
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = gmo.options + MQC.MQGMO_SYNCPOINT+MQC.MQGMO_WAIT;
gmo.matchOptions = gmo.options + MQC.MQMO_MATCH_CORREL_ID;
gmo.waitInterval = 10000;

the gmo does not pick the request -reply msg.
Now when i dont append diff options of gmo, it works fine.
Anyways that was my trial, thanks.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Mon Feb 11, 2008 11:55 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Don't set matchoptions to getoptions!
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 12, 2008 1:41 am    Post subject: Reply with quote

Grand High Poobah

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

harshvajra wrote:

gmo.options = gmo.options + MQC.MQGMO_SYNCPOINT+MQC.MQGMO_WAIT;
gmo.matchOptions = gmo.options + MQC.MQMO_MATCH_CORREL_ID;
gmo.waitInterval = 10000;


These are 2 different fields. The bit masks are incompatable.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
harshvajra
PostPosted: Tue Feb 12, 2008 1:59 am    Post subject: Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

thanks, i understood.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
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 Java / JMS » Can we add all the gmo.* options
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.