Yao please send your persistence.xml, DB and driver details.

-----Original Message-----
From: chunlinyao [mailto:[email protected]] 
Sent: Thursday, 14 October 2010 6:28 PM
To: [email protected]
Subject: Re: Schema generation uses auto-commit mode; breaks on XA data
sources


Hi

You said schemaTool use autocommit, I found it set autocommit to true and
also call commit method.

According to javadoc in here.
http://download.oracle.com/javase/6/docs/api/java/sql/Connection.html#commit
()

Throws:
SQLException - if a database access error occurs, this method is called
while participating in a distributed transaction, if this method is called
on a closed conection or this Connection object is in auto-commit mode

It will get SQLException when this Connection object is in auto-commit mode.

My project broke when I upgrade to a new version of jdbc recently.

Regards,
Yao
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Schema-generation-uses-auto-commit-mode-
breaks-on-XA-data-sources-tp4583095p5634010.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to