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 » Issue inserting Record into Database using Java compute node

Post new topic  Reply to topic
 Issue inserting Record into Database using Java compute node « View previous topic :: View next topic » 
Author Message
vrboya
PostPosted: Thu Aug 22, 2013 2:28 pm    Post subject: Issue inserting Record into Database using Java compute node Reply with quote

Newbie

Joined: 20 Jul 2013
Posts: 7

Hi
I am trying to insert Request and Response into a table using the java compute node.
My Flow:

For saving request
MQ Input node ---> javacompute node

For Saving Response
MQ Input node ---> java compute Node

I need to save both request and response as one record, but it is saving as to different records. It seems that either of the java compute node is not able to get the record updated by another java compute node.

Can anybody help me out.

Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 22, 2013 4:27 pm    Post subject: Reply with quote

Grand High Poobah

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

Why Java rather than one of the built-in DB nodes?

What's the logic in the JCNs that's intended to detect that there's a record that needs to be updated rather than inserted?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
McueMart
PostPosted: Fri Aug 23, 2013 12:21 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

What are the two SQL queries you are using in your two JCNs? You should have one INSERT and one UPDATE. I'm guessing from your description you have 2 INSERTs.

If this is the case you need to google for a basic SQL tutorial as this is very very basic stuff.
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 » Issue inserting Record into Database using Java compute 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.