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 » How to insert & retreive MQRFH2 data from Database

Post new topic  Reply to topic
 How to insert & retreive MQRFH2 data from Database « View previous topic :: View next topic » 
Author Message
efei
PostPosted: Thu Feb 27, 2003 1:53 am    Post subject: How to insert & retreive MQRFH2 data from Database Reply with quote

Newbie

Joined: 27 Feb 2003
Posts: 2

I just read the article "Creating a RFH2 folder from a String".

Now I have similar requirements :

1. The source system send a message with MQRFH2 into WMQI (V2.1).
There are a few variable tags in the MQRFH2.
Ex. <Log><Key1>Value1</Key1><Key2>Value2</Key2></Log>

2. The target system does not support MQRFH2.
So we have to remove MQRFH2, and insert the whole data in the <Log> folder into DB (using ESQL).

3. When WMQI receives the response message from the target system,
we have to retreive the original data from DB, and use it to create the <Log> folder in MQRFH2 (using ESQL).

I have known how to remove MQRFH2, but I have no idea of how to insert & retreive the <Log> folder in MQRFH2.

Your advice will be highly appreciated.
It would be better if there are some samples.
Thanks a lot !!


efei
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Thu Feb 27, 2003 10:27 pm    Post subject: Reply with quote

Jedi Knight

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

You can create one field for each element in the <Log> folder. You can use simple ESQL code to insert and retrieve data from this table.
_________________
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
efei
PostPosted: Mon Mar 03, 2003 4:06 am    Post subject: Reply with quote

Newbie

Joined: 27 Feb 2003
Posts: 2

What if there are 100 tags in the <Log> folder ?

What I meant to do is :

1. Convert the whole data in the <Log> folder into bitstream or characters, and then insert into the DB as BLOB.

2. Retreive the BLOB field from the DB, convert into characters and then set into the <Log> folder.

How to implement this using ESQL ?
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 » WebSphere Message Broker (ACE) Support » How to insert & retreive MQRFH2 data from Database
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.