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 » General IBM MQ Support » Bitwise OR operation

Post new topic  Reply to topic
 Bitwise OR operation « View previous topic :: View next topic » 
Author Message
anveshita
PostPosted: Mon Dec 27, 2004 12:12 pm    Post subject: Bitwise OR operation Reply with quote

Master

Joined: 27 Sep 2004
Posts: 254
Location: Jambudweepam

I see a code sample in JAVA that says
getmessageoptions.options=8225;
I am trying to understand how I can represent this in more readable format. Probably the sample I am looking at, is a decompiled version.

I understand that multiple options are defined you could do a bitwise OR operation and sepecify the options as single integer.

Given the above option, how do I know what options the sample code is specifying.

Please let me know
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Dec 27, 2004 12:18 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

All MQ Constants and their Hex/decimal values are documented in Appendix B of Application Programming Reference manual. You need to do some maths to find out what options would correspond to 8225. Look at MQGMO_* options.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
anveshita
PostPosted: Mon Dec 27, 2004 1:27 pm    Post subject: Reply with quote

Master

Joined: 27 Sep 2004
Posts: 254
Location: Jambudweepam

Thanks Kirani,
If I am correct it amouts to
MQGMO_FAIL_IF_QUIESCING:8192
MQGMO_BROWSE_NEXT:32
MQGMO_WAIT:1

Ain't it?
Thanks
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Dec 27, 2004 2:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

that's correct!
The person who wrote the sample code should have used MQ Constants to make it more redable.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
bower5932
PostPosted: Mon Dec 27, 2004 2:45 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Where did you find the sample?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
clindsey
PostPosted: Mon Dec 27, 2004 2:46 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

You are correct

I personally believe it is easier to work with the number is hex.
8225 = 0x2021.

this is:
MQGMO_FAIL_IF_QUIESCING 0x00002000
+
MQGMO_BROWSE_NEXT 0x00000020
+
MQGMO_WAIT 0x00000001


Charlie
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 » General IBM MQ Support » Bitwise OR operation
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.