You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Aleksej <al...@ivs.lt> on 2006/07/20 09:55:20 UTC

Hivetranse: How to configure transaction demarcation for existing datasource?

Hivetranse quick start describes only how to create datasource for 
application,
but it is not an option in my case ( more than one webapp uses the same 
DB ).
For Hibernate I just specified Tomcat's datasource in hibernate config, 
but how
to do the same think for simple JDBC transaction?

RE: Hivetranse: How to configure transaction demarcation for existing datasource?

Posted by Jean-Francois Poilpret <jf...@hcm.vnn.vn>.
Hello Aleksej,

The example in HiveTranse quickstart is just an example which is based on
commons-dbcp "BasicDataSource".
If you take a look at commons-dbcp javadoc, you will see they provide other
kinds of DataSource, in particular "SharedPooledDataSource" which takes its
Connection from JNDI (as per the javadoc). It seems to have all necessary
setters for JNDI context configuration directly from a hivemind xml file.
I think it would be worth a look.

Cheers

Jean-Francois

-----Original Message-----
From: Aleksej [mailto:aleksej@ivs.lt] 
Sent: Thursday, July 20, 2006 2:55 PM
To: hivemind-user@jakarta.apache.org
Subject: Hivetranse: How to configure transaction demarcation for existing
datasource?

Hivetranse quick start describes only how to create datasource for 
application,
but it is not an option in my case ( more than one webapp uses the same 
DB ).
For Hibernate I just specified Tomcat's datasource in hibernate config, 
but how
to do the same think for simple JDBC transaction?