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 » IIB9: ESQL TransactionMode

Post new topic  Reply to topic
 IIB9: ESQL TransactionMode « View previous topic :: View next topic » 
Author Message
akil
PostPosted: Fri Aug 28, 2015 7:09 am    Post subject: IIB9: ESQL TransactionMode Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Hi

Version 9.0.0.2

I've a Compute Node with the Transaction Mode set as Commit, and the dataSource specified as DS1.

In the ESQL code of the compute node, I am referring to a different datasource, DS2. ( INSERT INTO Database.{dataSource}.{schemaName}.MYTABLE. ... )

The transaction mode of the ESQL Insert statement is 'Automatic' & not 'Commit' , which was specified in the Compute Mode.

Once I change the dataSource of the Compute Node to be DS2, then the Transaction Mode of the ESQL statement changes to Commit.

So it seems that the transaction mode property of the compute mode sets it on the dataSource that is specified in the properties, and is not applicable to other dataSources that are used in the ESQL code.

Is this the expected behaviour ?

How can I specify the TransactionMode for dataSources that are used in the ESQL code, given that they are different than the once specified in the Compute node?
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Fri Aug 28, 2015 7:23 am    Post subject: Re: IIB9: ESQL TransactionMode Reply with quote

Grand High Poobah

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

akil wrote:
Is this the expected behaviour ?




akil wrote:
How can I specify the TransactionMode for dataSources that are used in the ESQL code, given that they are different than the once specified in the Compute node?


Redesign your logic such that different data sources with different transactional requirements are in different Compute nodes. That's probably a better design practice anyway - clearer and gives a more straightforward roll back path.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
akil
PostPosted: Fri Aug 28, 2015 7:30 am    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Hi

That's what we usually do, what happened in this case was that during the BAR applyoverride command, someone made a mistake, and the dataSource property of the computeNode got out of sync with the dataSource that was specified in the ESQL ..

It took sometime to figure out that this was the cause .. hence the question ..
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB9: ESQL TransactionMode
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.