pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Peter Tap <ptrtap@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Transactional support across multiple machines...
Date: Wed, 17 Nov 2010 20:47:13 +0200
Message-ID: <4CE42331.30109@enterprisedb.com> (raw)
In-Reply-To: <AANLkTimH7iy7z5C9N+39ThQeLGx87oWZeAyFYjPG3v_X@mail.gmail.com>
References: <751378.43371.qm@web62302.mail.re1.yahoo.com>
	<AANLkTimH7iy7z5C9N+39ThQeLGx87oWZeAyFYjPG3v_X@mail.gmail.com>

On 17.11.2010 20:40, Maciek Sakrejda wrote:
> Prepared transactions:
> http://www.postgresql.org/docs/9.0/static/sql-prepare-transaction.html

Yeah, two-phase commit is the usual solution. But you shouldn't usually 
try to implement that yourself, you should pick an existing Transaction 
Manager. Java application servers usually include one, so if you're 
using an application server, just configure your application to use XA 
connections and let the app server handle the two-phase commit for you.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (5+ messages)  latest in thread

Message-ID: <4CE42331.30109@enterprisedb.com>
Permalink:  ../4CE42331.30109@enterprisedb.com/
Also on:    postgresql.org/message-id/4CE42331.30109@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, msakrejda@truviso.com, ptrtap@yahoo.com
  Subject: Re: Transactional support across multiple machines...
  In-Reply-To: <4CE42331.30109@enterprisedb.com>
  References: <751378.43371.qm@web62302.mail.re1.yahoo.com> <AANLkTimH7iy7z5C9N+39ThQeLGx87oWZeAyFYjPG3v_X@mail.gmail.com> <4CE42331.30109@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox