I also posted this a few minutes ago... it contains a snippet from my Spring
config.
http://www.nabble.com/Jencks-2.0%5CHibernate%5CSpring-Multiple-data-sources-example--tf4699221.html
I will try to get you a Junit example... One of the first things the JUnit
does in it's setUp() is begin a transaction, and then in the tearDown() if
the transaction is not completed it does a rollback. Would this be
considered the UserTransaction?
protected void setUp() throws Exception {
super.setUp();
setTransactionManager((PlatformTransactionManager)
getTestBean("transactionManager"));
beginTransaction();
}
protected void tearDown() throws Exception {
super.tearDown();
if (!isTransactionCompleted()) {
rollbackTransaction();
}
}
gnodet wrote:
>
> How do you configure jencks ? Do you use a single transaction manager
> ? And how do you start the other transaction ?
> If you could provide a junit test, it would be much easier to check
> what's happening.
>
> On 10/26/07, rabueckers <[EMAIL PROTECTED]> wrote:
>>
>> Has anyone figured out how to get Jecks2.0 to do this?
>>
>> When I run my JUnit tests it appears Jencks2.0 is not using the
>> transaction
>> that was already started. However, when that initial transaction rolls
>> back
>> and the next test method is executed everything seems to work fine.
>>
>> Is there a easy way to either force Jencks to use the initial
>> transaction,
>> or drop the initial transaction and create a new one?
>>
>> I'm really struggling with this issue, so any help would be greatly
>> appreciated.
>>
>> Thanks,
>>
>> Bob
>>
>> I'm using Jencks2.0\Junit\Oracle\Ant\Eclipse in a multiple data source
>> configuration.
>>
>>
>> Mad Andy wrote:
>> >
>> > I want to use an Outbound JDBC through Jencks but the transaction is
>> > started and managed outside. It seems to me that in this case Jencks'
>> > transaction manager is not joining the transaction.
>> >
>> > Is there a way to make Jenck's transaction manager joining an existing
>> > transaction on the current thread rather than starting its own?
>> >
>> > Thanks - Andy Schaefer
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Jencks-joining-an-XA-Transaction-tf4207872.html#a13433144
>> Sent from the jencks - user mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
View this message in context:
http://www.nabble.com/Jencks-joining-an-XA-Transaction-tf4207872.html#a13433733
Sent from the jencks - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email