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 » WebSphere Message Broker (ACE) Support » Accessing optional RFH2 folders from C/C++

Post new topic  Reply to topic
 Accessing optional RFH2 folders from C/C++ « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Wed Dec 28, 2005 9:11 am    Post subject: Accessing optional RFH2 folders from C/C++ Reply with quote

Grand High Poobah

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

Hi,

The scenario I have is that an XML message passes through a MQSI 2.1 flow, arriving on a queue where some business/status data has been stored in a <usr> folder in the MQRFH2 header. This message is intended to be processed by a legacy C program which I'm able to amend. Identifying and stripping off the MQRFH2 header (before the rest of the message is fed to an XML parser to be turned into a tree) is straightforward as the total length is in the static part of the header.

Before I reinvent a wheel, does anyone have some cunning code for accessing the optional folders (mcd et al) at the end of an RFH2 header, or can I be pointed in the direction of a manual / support pac / etc?

Secondly, what's the perceived wisdom on using C these days? As it's being changed is it "better" to take a hit and rewrite it in C++? Does it simplify header processing? I have some lattitude with this, being both architect and coder.

Thirdly, and least importantly, my only real limitation is I can't convert it into Java. Slight shame as I understand access to JMS makes this sort of folder processing easy(ier). Is this true and would it make sense to migrate from C/C++ to Java?

Many thanks for any assistance / advice offered.

Eddy
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 28, 2005 2:57 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Do a search with XMS (C API for JMS type RFH headers)
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Dec 28, 2005 11:50 pm    Post subject: Reply with quote

Grand High Poobah

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

So IBM have a published wheel?

No matter how long you do this, there's always one more technology you've never heard of. And no matter how many keywords you try, it never comes up in Google.

Thanks for the pointer

Eddy
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 » WebSphere Message Broker (ACE) Support » Accessing optional RFH2 folders from C/C++
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.