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 » Problem in retrieving database using JDBC Adapter

Post new topic  Reply to topic
 Problem in retrieving database using JDBC Adapter « View previous topic :: View next topic » 
Author Message
dilse
PostPosted: Wed Jun 21, 2006 12:12 pm    Post subject: Problem in retrieving database using JDBC Adapter Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Hi All,
I need some help in implementing a message flow that sends a request to SQL Server and grab the data from a Database tabel.

ENVIRONEMNT:
WMQ 6.0.1.1
WMB 6.0.0.1
JDBC Adapter 2.6



Message Flow:
MQInput(MRM(XML) --> Mapping node --> MQOutput(REQUEST QUEUE of Adapter)(Message Set deployed from System Manager(CwXML))

Connector running fine and Polling as per the request.

I am facing a lot of problems in making a valid request to an Adapter. Here is what I am doing:

1. I am getting an XML as a request for which I have a message set and I am getting it fine.

2. When I recieve this in the mapping node I am mapping couple of fields in the BO message set(Request) from Input XML and setting the Properties for Message set information and set the verb as 'Retrieve'.

3. Tried sending it to Request Queue but connector is erroring with Encoding error information. So we realized we need to use RFH2 for this to provide extra info.

But I am not able to add both MQMD and MQRFH2 at once. If I am using RFH2 then I cannot use MQMD.

Did anyone face a similar probblem? Please suggest what needs to be done.

If there is any better option to implement a message flow for the same functionality please let me know.

Appreciate any pointers on this.

DilSe..
_________________
DilSe..

Take life as it comes..
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Jun 21, 2006 12:36 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
But I am not able to add both MQMD and MQRFH2 at once. If I am using RFH2 then I cannot use MQMD.

Why not
What is your message format?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dilse
PostPosted: Wed Jun 21, 2006 12:53 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

The Output format is 'CwXML' which is a BO data for request Queue of Adapter.
_________________
DilSe..

Take life as it comes..
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Jun 21, 2006 1:53 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

In Mapping node, when we open the map file, we have to choose to include headers also to include MQRFH2 in Message Header. And when we choose this option, it will create a Choice element to decide which header to choose from MQMD, MQRHF, MQRHF2 etc list. So I am not able to set two of this with this choice element.

Please let me know if we can achieve this in any other way.

Thanks in Adance.
_________________
DilSe..

Take life as it comes..
Back to top
View user's profile Send private message
dilse
PostPosted: Thu Jun 22, 2006 8:01 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

I have got it to work to include both headers.

Thanks
_________________
DilSe..

Take life as it comes..
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 » Problem in retrieving database using JDBC Adapter
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.