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.



Christopher G. Stach II wrote:
> 
> Arif Mohd wrote:
>> Hi gnodet,
>>     
>>        Could you please answer my question as explained above.Ofcourse i
>> also attached activemq with the transaction manager and rolling
>> back,commiting of transactions are happening perfectly.
>> 
>>       The flow is very simple once the message is posted in activemq
>> these
>> threads starts executing parallely if any one of thread fails all the
>> processing of threads will be rolled back and even the message in
>> activemq
>> is rolled back.
>> 
> 
> Do you want distributed transactions with 2PC or to share a single
> Hibernate session across threads?
> 
> -- 
> Christopher G. Stach II
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-jencks-canbe-integrated-with-hybernate--tf4514305.html#a13053964
Sent from the jencks - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to