Posted: Thu Aug 22, 2013 2:28 pm Post subject: Issue inserting Record into Database using Java compute node
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.
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.
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.
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