Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Castle.Facilities.NHibernateIn tegration
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ross  
View profile  
 More options Dec 19 2011, 1:40 am
From: ross <ross.cannizz...@gmail.com>
Date: Sun, 18 Dec 2011 22:40:37 -0800 (PST)
Local: Mon, Dec 19 2011 1:40 am
Subject: Castle.Facilities.NHibernateIntegration
Hi All,

I posted on Stack Overflow previously as I was having trouble with the
NHibernateIntegration facility in Windsor when working alongside
Castle Windsor 3. The question is located at:

http://stackoverflow.com/questions/8557327/castle-windsor-3-fluent-nh...

I have since recompiled the NHibernateIntegration Facility DLL file
with a few changes to get it working and was wondering if this is
worth creating a patch for? The changes are:

For src\Castle.Facilities.NHibernateIntegration\Internal
\SessionFactoryActivator.cs:

Before: public override object Create(CreationContext context)
After: public override object Create(CreationContext context, Burden
burden)

For src\Castle.Facilities.NHibernateIntegration\Internal
\NHSessionComponentInspector.cs

Before: model.Dependencies.Add(new
DependencyModel(DependencyType.Service, null,
typeof(NHSessionInterceptor), false));

After: model.Dependencies.Add(new DependencyModel(null,
typeof(NHSessionInterceptor), false));

Thanks,

Ross.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ross  
View profile  
 More options Dec 20 2011, 8:19 pm
From: ross <ross.cannizz...@gmail.com>
Date: Tue, 20 Dec 2011 17:19:03 -0800 (PST)
Local: Tues, Dec 20 2011 8:19 pm
Subject: Re: Castle.Facilities.NHibernateIntegration
Posted the issue and some patches to the issue tracker:

http://issues.castleproject.org/issue/FACILITIES-156

On Dec 19, 4:40 pm, ross <ross.cannizz...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Jeffery  
View profile  
 More options Dec 20 2011, 8:32 pm
From: "John Jeffery" <jjeff...@sp.com.au>
Date: Wed, 21 Dec 2011 11:32:52 +1000
Local: Tues, Dec 20 2011 8:32 pm
Subject: RE: Castle.Facilities.NHibernateIntegration
The project status page shows that the NHibernate facility currently has no
leader. Is this the case, or is someone actively supporting this facility?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Conceição  
View profile  
 More options Dec 20 2011, 8:58 pm
From: Henry Conceição <henry.concei...@gmail.com>
Date: Tue, 20 Dec 2011 23:58:00 -0200
Subject: Re: Castle.Facilities.NHibernateIntegration
Yes, the facility currently has no leader, but it doesn't mean that
it's unsupported.

Cheers,
Henry Conceição


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Jeffery  
View profile  
 More options Jan 4 2012, 10:10 pm
From: John Jeffery <jjeff...@sp.com.au>
Date: Wed, 4 Jan 2012 19:10:43 -0800 (PST)
Local: Wed, Jan 4 2012 10:10 pm
Subject: Re: Castle.Facilities.NHibernateIntegration
Hi Ross,

What version of Castle.Services.Transactions were you using? I am
interested in getting the NH facility going as well, and I checked out
from the trunk and applied your patch.

All good so far, but I am also getting a compile error in src
\Castle.Facilities.NHibernateIntegration\Internal\ResourceAdapter.cs

The ResourceAdapter class implements an interface
Castle.Services.Transactions.IResource, which no longer exists in the
latest version of Castle.Services.Transactions (I used version
3.0.202.2202 from nuget). I have had a look around trying to work out
if this interface has been renamed or moved, but it would appear that
it has been completely removed. Any suggestions gratefully received.

Cheers -- John

On Dec 21 2011, 11:19 am, ross <ross.cannizz...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ross  
View profile  
 More options Jan 4 2012, 10:21 pm
From: ross <ross.cannizz...@gmail.com>
Date: Wed, 4 Jan 2012 19:21:53 -0800 (PST)
Local: Wed, Jan 4 2012 10:21 pm
Subject: Re: Castle.Facilities.NHibernateIntegration
Hi John,

I'm using an older version - 2.5.1.0- which still works ok.

The reason for this is because it compiles in .Net 3.5 which is a
requirement for the project I'm working on.

The 3.x version uses some .Net 4.0 specific features- I did manage to
replace most of them at one stage but due to time constraints didn't
get back around to it.

Cheers,

Ross.

On Jan 5, 1:10 pm, John Jeffery <jjeff...@sp.com.au> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Conceição  
View profile  
 More options Jan 4 2012, 10:43 pm
From: Henry Conceição <henry.concei...@gmail.com>
Date: Thu, 5 Jan 2012 01:43:30 -0200
Local: Wed, Jan 4 2012 10:43 pm
Subject: Re: Castle.Facilities.NHibernateIntegration
Yeah, they (latest atm and nhib integration) don't play along together
anymore. You'll have to pick the 2.5 and update it to the latest
version.

Cheers,
Henry Conceição


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Conceição  
View profile  
 More options Jan 4 2012, 10:54 pm
From: Henry Conceição <henry.concei...@gmail.com>
Date: Thu, 5 Jan 2012 01:54:45 -0200
Local: Wed, Jan 4 2012 10:54 pm
Subject: Re: Castle.Facilities.NHibernateIntegration
A simple update of tx the machinery doesn't work. At least if you want
to follow the guidelines preached by nhibernate (even with a ambient
tx, you must have begin session transaction). The simplest way it to
go with implicit session transaction (like henrik's facility does),
but it can lead to nasty dtc issues (from what i've read on blogs and
stackoverflow).

I'm trying to get they working together, but I'm not confident in
publish it atm. Want to test it a little more....

Cheers,
Henry Conceição


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Jeffery  
View profile  
 More options Jan 5 2012, 12:13 am
From: John Jeffery <jjeff...@sp.com.au>
Date: Wed, 4 Jan 2012 21:13:07 -0800 (PST)
Local: Thurs, Jan 5 2012 12:13 am
Subject: Re: Castle.Facilities.NHibernateIntegration
I was under the impression that the need to declare a session
transaction inside a transaction scope was fixed with NH 3.0 and
later? Do you think it is still necessary?

I for one would be very interested to see what you are doing with NH
integration with Castle Henry, if you ever get it to the point where
you want to show someone else.

Cheers -- John

On Jan 5, 1:54 pm, Henry Conceição <henry.concei...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Conceição  
View profile  
 More options Jan 5 2012, 12:38 am
From: Henry Conceição <henry.concei...@gmail.com>
Date: Thu, 5 Jan 2012 03:38:14 -0200
Local: Thurs, Jan 5 2012 12:38 am
Subject: Re: Castle.Facilities.NHibernateIntegration
It's? Where did you saw it?

Cheers,
Henry Conceição


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Jeffery  
View profile  
 More options Jan 5 2012, 1:33 am
From: "John Jeffery" <jjeff...@sp.com.au>
Date: Thu, 5 Jan 2012 16:33:43 +1000
Local: Thurs, Jan 5 2012 1:33 am
Subject: RE: Castle.Facilities.NHibernateIntegration
I read it a couple of places but have not done my own testing (yet) -- this
is a link to a fairly long blog entry about the problem. The author of the
blog posts a comment (right at the bottom, third-last comment) to the effect
that it is not a problem in NH3.1.

http://davybrion.com/blog/2010/05/avoiding-leaking-connections-with-n...
te-and-transactionscope/

Cheers -- John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Conceição  
View profile  
 More options Jan 5 2012, 2:42 am
From: Henry Conceição <henry.concei...@gmail.com>
Date: Thu, 5 Jan 2012 05:42:54 -0200
Local: Thurs, Jan 5 2012 2:42 am
Subject: Re: Castle.Facilities.NHibernateIntegration
Cool. I did some tests with this approach but since the
session.transaction was never active, i've assumed that the explict
session transaction management continued needed.

Cheers,
Henry Conceição


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »