cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <>
Subject Re: @Transactional in another thead?
Date Tue, 16 Feb 2010 18:25:40 GMT
Spring has a concept called "transaction suspension" which allows you
to detach a transaction from a thread. This is primarily used to
execute a separate transaction on the same thread (and later resume
the original transaction), but this probably can also be used to
reattach the transaction to a different thread. So, by googling for
"transaction suspension" you may be able to find some information
about how to do this.


On Tue, Feb 16, 2010 at 19:03, Daniel Kulp <> wrote:
> This is definitely a Spring thing and you would probably need to ask on the
> Spring forums.   Basically, the transaction information is held in a
> ThreadLocal someplace and if you flip threads, the transaction information is
> no longer available on that thread.   There MAY be a way in spring to copy the
> transaction information to a new thread, but I'd have no idea how to do it.
> You would need to ask them.
> Dan
> On Mon February 15 2010 2:02:45 pm Wadi Jalil Maluf wrote:
>> Hi all,
>>           Im using Spring @Transactional anotation to handle
>> trasnactions. The thing is that I have a Service that opens another
>> thread and later calls a method using @Transactional . Whe I do that I
>> get a TransactionRequired exception, does anyone know how ca I deal with
>> @Transactional and multiple threads?Why is this a problem, am I missing
>> something?Any help would be appreciatted,
>> Thanks in advance,
>> Ernest
>> __________ Información de ESET Smart Security, versión de la base de firmas
>> de virus 4869 (20100215) __________
>> ESET Smart Security ha comprobado este mensaje.
> --
> Daniel Kulp

View raw message