views:

28

answers:

3

Hi,
I read somewhere that in order to use JTA and Tomcat (I'm also using Hibernate) you need to use a JTA version of the JDBC driver. Is this true?
If so, does this driver include JTA support?

Thanks,
Ittai

+1  A: 

Yes, it does. See com.microsoft.sqlserver.jdbc.SQLServerXADataSource. You can also read more on XA transactions with MS SQL here

Eugene Kuleshov
A: 

But having the XA driver is necessary but not sufficient. You have to have a JTA transaction manager as well, and that's not part of JDBC.

duffymo
Yes thanks. I of course know that, The JTA Specific JDBC driver was the missing element
Ittai
A: 

I've always used the jTDS driver for MS SQL Server.
MS SQL Server, was built from a base acquired from Sybase, therefore they both use Tabular Data Stream as a protocol.

And as duffymo has said you'll need a JTA transaction manager such as :

crowne