pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
XA Status 2+ messages / 2 participants [nested] [flat]
* XA Status @ 2006-06-13 14:03 Stefan Arentz <stefan.arentz@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Stefan Arentz @ 2006-06-13 14:03 UTC (permalink / raw) To: pgsql-jdbc Hi there, I'm interested in leaning the status of XA support in the JDBC driver. The FAQ says this: 1.1. Does the driver have XA support? Yes, starting with the 8.1dev-403 driver XADataSource support is available. It is not complete in that it does not support transaction interleaving. But I have of course no idea what transaction interleaving is and whether that would affect my application. I basically just want to coordinate transactions either between two seperate databases or between a database and a XA capable JMS provider. Will I get in trouble if I use the current driver for those situations? S. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: XA Status @ 2006-06-14 14:57 Heikki Linnakangas <hlinnaka@iki.fi> parent: Stefan Arentz <stefan.arentz@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Heikki Linnakangas @ 2006-06-14 14:57 UTC (permalink / raw) To: Stefan Arentz <stefan.arentz@gmail.com>; +Cc: pgsql-jdbc On Tue, 13 Jun 2006, Stefan Arentz wrote: > But I have of course no idea what transaction interleaving is and > whether that would affect my application. It means that one database connection can be used for multiple transactions at the same time, switching between the transactions. See the JTA specification, section 3.4.4 if you want a more detailed explanation. You can also search the archives for previous discussion about it. Transaction interleaving is mostly useless, but it's used in some application servers to allow a bit more concurrency without allocating a bigger jdbc connection pool. If I remember correctly, JBoss, for example, uses it unless you tell it not to by setting the "track-connection-by-tx" parameter. Assuming you are using an application server, it acts as the transaction coordinator and there isn't anything you can do about it in the application. Many other drivers don't support transaction interleaving properly either (see archives), so all the application servers I've tried have an option to work around it. > I basically just want to coordinate transactions either between two > seperate databases or between a database and a XA capable JMS > provider. It depends on your application server (or transaction manager if you don't use one). I mainly used JOnAS for testing when I originally wrote the driver. JBoss should work too. Someone on this list had success with WebLogic, but only after patching the driver a bit. I think the patch still hasn't been applied. > Will I get in trouble if I use the current driver for those situations? In any case, you should get an error message if it doesn't work. I would suggest that you try it and see if it works. And please let us know how it works, especially if it doesn't so that we can fix it! - Heikki ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-06-14 14:57 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2006-06-13 14:03 XA Status Stefan Arentz <stefan.arentz@gmail.com> 2006-06-14 14:57 ` Heikki Linnakangas <hlinnaka@iki.fi>
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