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 set condition update statement in DataUpdate node

Post new topic  Reply to topic
 How to set condition update statement in DataUpdate node « View previous topic :: View next topic » 
Author Message
Tony.Cui
PostPosted: Mon Aug 21, 2006 1:52 am    Post subject: How to set condition update statement in DataUpdate node Reply with quote

Newbie

Joined: 21 Aug 2006
Posts: 2

I want to update database record according to messages in MQ Input. I want to update record whose primary key value is equal to message's. But I found no place to claim this statement. What should I do? Thanks very much.
Tony
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 21, 2006 1:59 am    Post subject: Reply with quote

Grand High Poobah

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

Read the manual?

What do you mean by "claim the statement"? Are you trying to use one of the database nodes, a Compute node with a data source or a custom Java node? What have you tried and what happened (error messages etc)?

Also what version of the broker are you using, on what platform and with what database?

Help us to help you
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nathanw
PostPosted: Mon Aug 21, 2006 1:59 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

As above

BUT

If you only want to insert values based on teh content of the message itself then I would suggest a Compute Node rather than a Data ****** Node
Back to top
View user's profile Send private message MSN Messenger
Tony.Cui
PostPosted: Mon Aug 21, 2006 5:21 pm    Post subject: Reply with quote

Newbie

Joined: 21 Aug 2006
Posts: 2

I mapped a xml schema to a table of db using DataUpdate node. I want to update record according an element of this schema which is mapped to primary key of database. But if I simply mapped xml elements to database, it will update one record if there is only one record in db. If there are more than one record, there are some errors. So I want to set statement to tell it update record according primary key. Where to set this statement? Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 22, 2006 12:02 am    Post subject: Reply with quote

Grand High Poobah

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

Follow the suggestion of nathanw and use a Compute node.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » How to set condition update statement in DataUpdate node
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.