-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Indigo (WCF) - HowTo manage sessions, transactions?
PostPosted: Mon Mar 20, 2006 3:50 pm 
Newbie

Joined: Tue Jan 25, 2005 5:05 pm
Posts: 17
Hi all.

1) Can anyone explain how to manage NHibernate sessions in Indigo applications. It's so simple to implement session-per-request approach using HttpContext in plain old Web services, but I have no idea about WCF.

2) How to use System.Transactions? Simply use it or something magick required? Could anyone post sample code here?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 2:04 pm 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
When we tried using System.Transactions, we ended up with conflicts because the underlying SQL Server connection will implictly join the same transaction scope. We ended up creating our own transaction scope class.

You could also look at the Castle project's NHibernate facility, that provides transaction management:

http://www.castleproject.org/index.php/Facility:NHibernate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.