How do I remove (strip) the RFH2 header from a message?

Hi,
MQSeries version 5.2.1 with client version 5.2.2
I have a Java program enqueues the messages to MQSeries and another Java program dequeues them and I need to remove the RFH2 header. How do I do this? I don't want to define TARGCLIENT(MQ). In another word, the RFH2 header can exists, and I must be able to detect and remove it when dequeue.
Thanks very much in advance,
Frank

There is a kludge, which involves using the innards of an MQSeries message - 8 bytes into the message is a 4 byte block which gives you the length of the RFH2 header ( which is variable depending on the JMS header info you have ). Read these bytes and convert them to an int, and then do a msg.seek(lengthofheader) to get the start of the raw MQSeries message. Its not pretty coding and I don't know the likelyhood of IBM changing the internal format of a message with new version releases.

Similar Messages

  • How can I remove only the middle elements from a 2-D array?

    Hello all!
    We have had an issue at my work where some of our graphs featuring a Gaussian curve have an unusual rectangular distortion in the middle of the curve (sorry that I have no image to show you, the error is before my time at the company, and I've been asked to find a solution before it happens again). Basically, what should be a Gaussian curve is leveling off briefly and looking like a rounded square wave. We know what causes the distortion, so I only wish to remove the middle part, giving it the appearance of a Gaussian. It's odd, but it actually offers a good approximation of what we want. The graph is made from a 2-D array of Double values, and we can estimate the size of the leveled-area, so I figured that removing the middle elements from the graph would accomplish this. Does anybody know a way I can accomplish this?
    -Gobble
    LabView 8.5.1

    Raven,
    Thank you very much, I'll try that!
    -Gobble
    LabView 8.5.1

  • How can I remove all the drawing canvases from a Word file?

    Hi,
    There are many drawing canvases in the document, which were created by pressing 'edit' on embedded EMF files.
    I would like to replace the embedded figures with object references, so I searched for a way to delete all the drawing canvases but couldn't find the result.
    Is there a macro that will delete all the drawing canvases in the document? Or, is the drawing canvas defined as an object type at all?
    Thanks in advance.

    Hi,
    According to your description, do you want to change the shapes or other content's figures with object references of the drawing canvases in Word?
    If you need to use a macro, I recommend you post the question to MDSN forum for Word:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Reading MQRHF2 Header from MQ message.

    Hi
    I am getting MQ messages from an application using IBM Message Broker.
    My requirement is to read the MQRFH2 Header from MQ message.
    I didnt find any class in com.ibm.mq.jar file. I found the functionality in JMS but I am not supposed to use it.
    How can I read header from MQ message?
    Can someone please help me in overcoming this problem.
    Thanks in advance.

    Ya I have already gone through that but my problem is I am not supposed to use JMS Message.
    I must use MQ Message that is coming from IBM Message Broker.
    But MQMessage class doesnt contain any method to get or set MQRFH2 header. There are methods to get MQMD headers.
    Can you please suggest me the approach which I should follow.
    Thanks and regards,

  • How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    Depending on how you created your account, "None" may or may not be an option. I believe it has something to do with whether the account was made through an App Store request or the regular iTunes Store. For example, my account allows no card but my father's doesn't allow there to be no card.
    To change the card, go to your account settings and change the information to your new card, and hit save.

  • How do I remove an incorrect apple ID from an iPad and replace it with the correct one?

    How can I remove an incorrect Apple ID from my ipad and replace it with the correct one?

    Hello Shy guy,
    You can try this:
    1. Go to the iTunes Store or App Store
    2. Scroll down, there you will see Apple ID: "your email" (below Redeem and Send Gift)
    3. Tap on that button
    4. Tap on Sign Out
    Now you should be able to use another Apple ID.
    Cedric

  • HT1918 Hi, I have registered at apple site, and i have submitted the credit card information, they deducted some ammount without my permission, why they did that? how can i remove my credit card details from that site or deactivate my account?

    Hi, I have registered at apple site, and i have submitted the credit card information, they deducted some ammount without my permission, why they did that? how can i remove my credit card details from that site or deactivate my account?

    From that HT3702 page :
    If you update your billing information, the iTunes Store or Mac App Store will place an authorization hold on your payment card account, usually in the amount of 1 USD or the local currency equivalent, to verify your account information.
    You might see authorization requests on your online statement. These requests aren't actual charges; they are tests to confirm that your payment card account is active and has available funds to accommodate transactions. Authorization holds are removed by your financial institution shortly after your purchase clears. The time it takes to remove authorization requests varies by financial institution.
    The number of days that it takes to diappear varies by bank, but it's usually a few days - though with the weekend coming up it might take an extra day or two

  • How can I remove my old apple id from iTunes and put the new one in?

    Morning all, how can I remove my old apple Id from my I tunes account and replace it with the new apple ID, ?
    Many thanks
    Kimber. Lee

    Sign out of iTunes and sign in with the new ID. On your computer, under on of the iTunes menus, on your iPad Settings > iTunes and App Stores and tap on the Apple ID.
    Note that all apps downloaded under the previous ID are locked to that ID, and you will have to sign back onto it for any updates.

  • HT204266 How can I remove my credit card information from the app store?

    How can I remove my credit card information from the app store?  I would like to have an account without the credit card information.
    I would like to put in my credit card only when I am ready to purchase. 

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your phone then tap on your id in Settings > iTunes & App Store and tap 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918
    If you don't get the 'none' option on the payment details screen then do you owe iTunes anything or have any pre-orders/subscriptions due : http://support.apple.com/kb/TS5366 ?

  • How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?

    How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?  I have the icon but the program starts up and I have to delete it manually  from the desktop to clear my screen for other work...

    Are you using a Windows or a Mac? What you're seeing (the backwards L shaped menu) is probably the Canon Quick Menu. If you have a Mac you can go into your applications, select Canon Utilities, then drag Canon Quick menu to the trash and empty trash can. On Windows you'd go to the control panel, select Programs and Features (or Uninstall Program/Add or Remove Program) and uninstall the Canon Quick Menu. Not required for all the normal functions of the printer. You can do the same thing for My Image Garden. Also not required.

  • I accidentally removed/deleted the Printer icon from my dock - how can I get it back?

    I accidentally removed/deleted the Printer icon from my dock - how can I get it back?  I've tried dragging and dropping from the Print window - no luck.  I tried to drag from the Systems folder - no luck.   IOS 10.9.4

    Well I have always had a printer icon in the Dock, launched or not launched (as in the screen shot below,) right next to the scan icon. Neither of which are launched at the present time.
    What happens if you run a print job, control click the printer icon>Options>Keep in Dock
    MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9.4), i7 500GB 16GB RAM iPhone5 iOS7.1.2

  • How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    In Editor, go to the expert tab.
    Open picture B, the one you wish to select the "replacement" face from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the face. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position the face from picture B to cover the face on A
    In the layers palette you should see picture A as the background layer, and face B on a separate layer

  • How to remove all the cleaup events from DBA_AUDIT_MGMT_CLEAN_EVENTS

    Dear gurus,
    how to remove all the cleaup events from DBA_AUDIT_MGMT_CLEAN_EVENTS
    Arun

    Hi,
    Take a look:
    http://www.morganslibrary.org/reference/pkgs/dbms_audit_mgmt.html
    Regards,

  • How can one remove a raised texture pattern from a scan of the original photo?

    How can one remove a raised texture pattern from a scan of the original photo?
    Have several wedding photos scanned into PS Elements that were printed by the pro, photography studio on a raised pattern paper. Would anyone know how to remove the honey comb type pattern so that the picture canbe printed flat on glossy color photo paper?
    Any help would be greatfully appriciated.
    Thanks,

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

  • How can I remove apps no longer wanted from the cloud

    How can I remove apps no longer wanted from the cloud? they are not used any more and taking up space.

    Welcome to the Apple community Mickeymom.
    The apps are not actually in your iCloud storage, they are links to the apps in the App Store. What you are seeing is your purchase history and as such cannot be deleted.
    You can however hide your purchases, which you can do from the QuickLinks > Purchased option from the main page in the iTunes Store on your computer.

Maybe you are looking for