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.
> 
> http://www.eset.com

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to