Arif Mohd wrote:
> Hi Christopher,
>
> I need distributed trasactions with 2pc(this is achieved with jencks, i
> combined MySQL DB access and ActiveMQ transaction with this) also i need to
> share the hibernate session across multiple threads.Why i need to share the
> session across multiple threads is, these threads are independent so i can
> save time executing them parallely instead of doing sequentially. Ofcourse
> the main thread which created child threads will wait till the childs has
> processed then it will commit/rollback on transaction manager(which also
> commits/rollback the activeMQ transaction).
>
> You can see the code i have attached in this thread.Generally
> handling this kind of problem should be possible but iam running out of
> ideas.
As Guillaume said, you can't do that. You can have multiple distributed
Hibernate sessions participating in the same transaction if you write
some kind of ResourceAdapter(s) for the TM to use, or use something like
WS-Transaction or Jini.
--
Christopher G. Stach II
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email