Re: Windsor 2.0/MicroKernel Additional Arguments

2009-06-03 Thread Ayende Rahien
If I remember correctly, it was removed because of the potential to create very fragile code.That is, you pass a value that only somewhere down the chain is used. That is almost certainly going to bite you at some point. You can provide our own ISubDependnecyResolver to resurrect this option,

Re: AR + NHibernate + Oracle seems broken

2009-06-03 Thread Roelof Blom
Hi, With this version of NHibernate you need to specify the correct dialect for your version of Oracle: Oracle8iDialect, Oracle9iDialect, Oracle10gDialect, or OracleLiteDialect. -- Roelof On Wed, Jun 3, 2009 at 12:46 PM, Mark Jensen don...@gmail.com wrote: Hi I have just updated an

Re: AR + NHibernate + Oracle seems broken

2009-06-03 Thread Mark Jensen
ahh, great Thanks :) On Jun 3, 12:57 pm, Roelof Blom roelof.b...@gmail.com wrote: Hi, With this version of NHibernate you need to specify the correct dialect for your version of Oracle: Oracle8iDialect, Oracle9iDialect, Oracle10gDialect, or OracleLiteDialect. -- Roelof On Wed, Jun 3,

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Craig Neuwirt
I think it would be more like session = sessionManager.OpenSession(); Hashtable dependencies = new Hashtable(); dependencies.Add(sessopm, session); return container.Resolve(serviceType.FullName, dependencies); This assumes the serviceType ctor has an

Brail ignores append parameter in CaptureFor when latter are called from two distinct subviews

2009-06-03 Thread Vladimir Okhotnikov
In my site I want subviews/view components to be able to append their custom javascript blocks to HTML head. I basically use CaptureFor(@id:javascript, @append:after) in the subviews for that. However, the @append parameter is being ignored in such case. In other words, given a

Upgrade to trunk seems to break because of NH 2.1

2009-06-03 Thread Jimmy Shimizu
Hello, we just tried upgrading to a late trunk version, with NHibernate 2.1 alpha3 and after resolving some changes I have come across this issue: [AmbiguousMatchException: Ambiguous match found.] System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Andyk
Thats dont it, its working, fantastic. Does the dependency object need to be disposed in a certain way. Currently my ReleaseInstance method just calls session.close and then session=null However the session seems to permamently stay closed on any subsequent requests? On 3 June, 13:07, Craig

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Andyk
Or alternatively, should a wcf service have a specific lifestyle? Maybe thats the issue. On 3 June, 14:34, Andyk andym.kni...@googlemail.com wrote: Thats dont it, its working, fantastic. Does the dependency object need to be disposed in a certain way. Currently my ReleaseInstance method just

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Craig Neuwirt
On Wed, Jun 3, 2009 at 8:34 AM, Andyk andym.kni...@googlemail.com wrote: Thats dont it, its working, fantastic. great! Does the dependency object need to be disposed in a certain way. Currently my ReleaseInstance method just calls session.close and then session=null However the session

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Craig Neuwirt
WCF Services are typically best handled as singletons On Wed, Jun 3, 2009 at 8:41 AM, Andyk andym.kni...@googlemail.com wrote: Or alternatively, should a wcf service have a specific lifestyle? Maybe thats the issue. On 3 June, 14:34, Andyk andym.kni...@googlemail.com wrote: Thats dont it,

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Andyk
Thats correct. One the first request everything is fine, session is opened in the GetInstance, the wcfservice uses the session fine, then the ReleaseInstance closes the session. Upon execution of the 2nd request, a new session is created in the GetInstance, and its properties show IsOpen=true.

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Craig Neuwirt
Yes, so in this case, your service lifestyle should be transient and you should do a Kernel.ReleaseComponent in ReleaseInstance On Wed, Jun 3, 2009 at 9:07 AM, Andyk andym.kni...@googlemail.com wrote: Thats correct. One the first request everything is fine, session is opened in the

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Andyk
Brilliant, works everytime now. Thanks for your time and help Craig! On 3 June, 15:11, Craig Neuwirt cneuw...@gmail.com wrote: Yes, so in this case, your service lifestyle should be transient and you should do a Kernel.ReleaseComponent in ReleaseInstance On Wed, Jun 3, 2009 at 9:07 AM,

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Craig Neuwirt
Are you interested in sending me your wcf integration code. It would be useful to others and possible something to integrate into WCF Facility On Wed, Jun 3, 2009 at 9:34 AM, Andyk andym.kni...@googlemail.com wrote: Brilliant, works everytime now. Thanks for your time and help Craig! On 3

Single Table Inheritance issue, HasMany Relationship, Discriminator not displayed in SQL Statement

2009-06-03 Thread Thi
Here's the draft. I've got the following classes: -Country -Image (Single Table Inheritance) -Map -Photo Statements: Map and Photo inherit from Image. A Country can have as many Photos as possible. A Country can have as many Maps as possible. Situation: The database is populated with

AbstractModelTestCase gives following error: You can't invoke ActiveRecordStarter.Initialize more than once

2009-06-03 Thread iansml
Hi, I'm unit testing my project and am getting the following error when I run more than 1 unit test fixture at the same time: You can't invoke ActiveRecordStarter.Initialize more than once My project structure is: Tests Directory |- AbstractModelTestCase (from:

Re: WcfIntegration and NHibernateIntegration

2009-06-03 Thread Andyk
I can certainly do that. Give me a a few hours and I'll translate it into a sample project and send it over to you tomorrow! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to

Re: sending/recieving AR models in a webservice

2009-06-03 Thread Ted Gifford
The Lock method on NHibernate Session is similar to what you're asking. Don't think AR has that method, but you can always access the underlying session. Ted On Wed, Jun 3, 2009 at 10:37 PM, MattF mattjfen...@gmail.com wrote: if anyone knows an answer to this, i would still very much like to

Re: sending/recieving AR models in a webservice

2009-06-03 Thread MattF
can you explain what the lock method does and why it works? i saw someone using it but i didn't really know what the consequences are. thanks On Jun 4, 2:28 pm, Ted Gifford tedford...@gmail.com wrote: The Lock method on NHibernate Session is similar to what you're asking. Don't think AR has