Author |
Message
|
harshvajra |
Posted: Sun Feb 10, 2008 10:48 pm Post subject: Can we add all the gmo.* options |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Feb 11, 2008 1:24 am Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Mon Feb 11, 2008 1:46 am Post subject: |
|
|
 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 |
|
 |
harshvajra |
Posted: Mon Feb 11, 2008 2:45 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Feb 11, 2008 3:06 am Post subject: |
|
|
 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 |
|
 |
harshvajra |
Posted: Mon Feb 11, 2008 8:43 pm Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Mon Feb 11, 2008 11:55 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Don't set matchoptions to getoptions! |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 12, 2008 1:41 am Post subject: |
|
|
 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 |
|
 |
harshvajra |
Posted: Tue Feb 12, 2008 1:59 am Post subject: |
|
|
 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 |
|
 |
|