On 7/6/03 Magehs Prabhu asked about a warning:

WARN [TxConnectionManager$LocalXAResource] Prepare called on a local tx. Use of localtransactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.
And Adrian Brock answerd:


>It is telling you your local-tx-datasource doesn't have a prepare(),
>the commit() could fail leaving your data in an inconsistent state.

And later explained that one needs a xa datasource for prepare()


I am playing with an example derived from the Gangster example of the JBoss 3.2.1. documentation.
Thus I never did set up a datasource, I am just using the built in Hypersonic one.


I get the very same warning.


How can I avoid this warning? How can I get "a xa datasource for prepare()" for the built in
datasource?


If anyone who knows could help me would be great!

I understand that adding "a xa datasource for prepare()" should be simple for someone settting up datasources,
but I wanted to take advantage of the fact that a datasource is built in and I do not need to set one up.


Best Regards,
Philipp Kutter



From: Adrian Brock <[EMAIL PROTECTED]>
Re: WARN [...] what they mean... 2003-07-06 16:10


On Sun, 2003-07-06 at 16:40, Magesh Prabhu wrote:

> I could'nt understand this Adrian, I'm using Oracle 8.1.6 database with the following
datasource configuration:
> > <datasources>
> <local-tx-datasource>
> <jndi-name>OracleDS</jndi-name>
> <connection-url>jdbc:oracle:thin:@193.16.18.126:1521:clipper</connection-url>
> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
> <user-name>test</user-name>
> <password>test</password>
> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
> </local-tx-datasource>
> </datasources>
> > Could you please give more explanation on your comment.. Should my jdbc driver support
this prepare() method.... My transaction is all Container managed and I run on Commit
Option 'B'
>


You need the xa datasource for prepare()





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to