You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Simone Maletta <si...@alice.it> on 2008/03/12 15:53:50 UTC
Transaction
Hi guys,
there is a way to deploy a pojo with servicemix-jsr181 in a transaction way?
I'm using noannotation POJO and I want that it become a transaction element exposed on http with container managed transaction.
Thank you all,
regards
Simone
Re: Transaction
Posted by Guillaume Nodet <gn...@gmail.com>.
I think the easiest way is to leverage spring transaction support and
wrap your pojo using spring.
See http://static.springframework.org/spring/docs/2.0.x/reference/transaction.html#transaction-declarative.
You can retrieve the transaction manager using JNDI and it should
already be a spring transaction manager in addition to an XA
transaction manager, so you don't even have to create a
JtaPlatformTransactionManager i think.
On Wed, Mar 12, 2008 at 3:53 PM, Simone Maletta <si...@alice.it> wrote:
> Hi guys,
> there is a way to deploy a pojo with servicemix-jsr181 in a transaction way?
> I'm using noannotation POJO and I want that it become a transaction element exposed on http with container managed transaction.
> Thank you all,
> regards
> Simone
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/