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 » Database Access from multiple brokers

Post new topic  Reply to topic
 Database Access from multiple brokers « View previous topic :: View next topic » 
Author Message
wbisantosh
PostPosted: Tue Oct 28, 2014 7:25 am    Post subject: Database Access from multiple brokers Reply with quote

Apprentice

Joined: 12 Nov 2012
Posts: 47

Hello Experts,

I have a quick question, I would rather say confusion.

I have an application which writes to the database(select,delete,insert,etc) in WMB. for high Availability, we are planning to deploy it in two different servers(two different brokers ofcourse).

What I am trying here is to have only one broker access the DB(make changes) to avoid dead-lock

I have tried using "Begin Atomic" statement but wanted to clarify it works if the application is deployed on two different brokers,
the infocenter states
Quote:
If ATOMIC is specified, only one instance of a message flow (that is, one thread) is allowed to execute the statements of a specific BEGIN ATOMIC... END statement (identified by its schema and label), at any one time


It would be very helpful if I can get some clarity about the Atomic statement

Thank
Santosh

Environment
WMB - v7.0.0.6
OS - AIX
DB - DB2
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 28, 2014 7:36 am    Post subject: Re: Database Access from multiple brokers Reply with quote

Grand High Poobah

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

wbisantosh wrote:
I have tried using "Begin Atomic" statement but wanted to clarify it works if the application is deployed on two different brokers,


It doesn't.

The scope is (as the InfoCenter) says the threads running in a broker, so you'd use if (for example) to ensure a flow running with multiple instances performed updates sequentially.

You'll need something else to prevent deadlock.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 28, 2014 7:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Typically your database prevents simultaneous updates to the same row.

You can usually configure your database to prevent simultaneous updates to the same table.

If you were using MBv8 or IIBv9, you could create your own lock in global cache.
Back to top
View user's profile Send private message
wbisantosh
PostPosted: Tue Oct 28, 2014 8:45 am    Post subject: Reply with quote

Apprentice

Joined: 12 Nov 2012
Posts: 47

Thank you very much Vitor and MqJeff. Appreciate it

I will work with DBA to implement the prevention of simultaneous updates

Thanks
Santosh
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 » Database Access from multiple brokers
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.