How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Paladin_za
Hi I would like to fluently configure the NHibernateIntegration facility, but can't find a way to tell the facility where to find my hibernate.cfg.xml file. Any ideas? public static IWindsorContainer RegisterComponents(IWindsorContainer container) { container

Re: How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Tuna Toksoz
Currently there is no easy way, it is on my to do list tho. You can use container.Kernel.ConfigurationStore.AddFacilityConfiguration( ) method to do it. This will be what the fluent interface is going to do. Tuna Toksöz Eternal sunshine of the open source mind.

Re: Compiling Windsor Facilities

2009-06-24 Thread Uri Goldstein
Hi All, Just wanted to say that having followed the instructions in How to build.txt I was able to build successfully. I too received BUILD SUCCEEDED - 2 non-fatal error(s), 0 warning(s) . Can't quite tell what the 2 non-fatal errors were. Any easy way to log NAnt's output to file? Thanks to

Re: Compiling Windsor Facilities

2009-06-24 Thread Jonathon Rossi
This will pipe it to a file: nant build.log From memory VS2002/2003 created the AssemblyInfo.cs files in the root, only come VS2005 they move it in the template. Castle has kept the convention back from early .NET days. On Wed, Jun 24, 2009 at 9:34 PM, Uri Goldstein

Re: FactoryActivator: could not proxy Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase

2009-06-24 Thread Locusta
Here an update from myself: when I drop the assemblies of Castle 1.0.3, then it works like a charm... I must have done something wrong On 24 jun, 11:59, Locusta locust...@gmail.com wrote: Hi We are using Castle Windsor 2.0, when we call container.ResolveT(); for an implementation, the error

Re: How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Paladin_za
Thanks for the feedback Looking at the WCF Facility I can see how the logging facility was initialized using the container.Kernel.ConfigurationStore.AddFacilityConfiguration( ) method. And I can see your pain for implementing the same for the NHibernateIntegration facililty. For now I'll use

Re: WCF: WSDL confusion

2009-06-24 Thread Bergius
If anyone encounters this problem, the solution that worked for me was to create my own ServiceHostFactory (which inherits DefaultServiceHostFactory) and add a new ServiceMetadataBehavior instance per host it creates, instead of registering a single ServiceMetadataBehavior instance on the kernel

Re: WCF: WSDL confusion

2009-06-24 Thread Craig Neuwirt
How was the ServiceMetadataBehavior added when it was mixing the wsdl? On Wed, Jun 24, 2009 at 8:08 AM, Bergius berg...@gmail.com wrote: If anyone encounters this problem, the solution that worked for me was to create my own ServiceHostFactory (which inherits DefaultServiceHostFactory) and

Re: WCF: WSDL confusion

2009-06-24 Thread Bergius
Like this (based on examples such as the WcfIntegration demo): var smb = new ServiceMetadataBehavior { HttpsGetEnabled = true }; kernel.Register( Component.ForIServiceBehavior().Instance( smb ) ); Maybe I could've solved it with ImplementedBy and component parameters? On Jun 24, 3:14 pm, Craig

Re: WCF: WSDL confusion

2009-06-24 Thread Craig Neuwirt
Can you try registering it as a transient and see if that resolves your issue Kernel.Register( Component.ForServiceMetadataBehavior().Lifestyle.Transient ) On Wed, Jun 24, 2009 at 8:31 AM, Bergius berg...@gmail.com wrote: Like this (based on examples such as the WcfIntegration demo): var smb

Re: WCF: WSDL confusion

2009-06-24 Thread Bergius
I'll give it a shot. How would I go about setting the HttpsGetEnabled property, as Parameters only work with string properties (if I'm not mistaken)? On Jun 24, 3:39 pm, Craig Neuwirt cneuw...@gmail.com wrote: Can you try registering it as a transient and see if that resolves your issue

Re: WCF: WSDL confusion

2009-06-24 Thread Craig Neuwirt
When using fluent config, you rarely need to use parameters since that is geared for config stuff.Use this kernel.Register( Component.ForServiceMetadataBehavior() .Lifestyle.Transient .DependsOn(new { HttpGetEnabled = true }) On Wed, Jun 24, 2009 at 8:50 AM, Bergius berg...@gmail.com

Re: WCF: WSDL confusion

2009-06-24 Thread Craig Neuwirt
cool On Wed, Jun 24, 2009 at 9:08 AM, Bergius berg...@gmail.com wrote: Oh, that's nice. Did not know you could do that. Component.ForServiceMetadataBehavior().DependsOn(new { HttpGetEnabled = true }) did the trick. Apparently no need for Lifestyle.Transient (it looks like WcfFacility

Re: WCF: WSDL confusion

2009-06-24 Thread Bergius
Oh, that's nice. Did not know you could do that. Component.ForServiceMetadataBehavior().DependsOn(new { HttpGetEnabled = true }) did the trick. Apparently no need for Lifestyle.Transient (it looks like WcfFacility takes care of that for any IServiceBehavior component). Thank you for this much

Re: Using Rescue Attribute

2009-06-24 Thread Jan Limpens
Debugging shows, my Json() method is called on the rescue, but never the Rescue(...) method. Watching the friendly log I get... 2009-06-24 11:50:07,944 [9] FATAL Fex.Web.Site.MVC.Controllers.TestRescues - Failed to process rescue view. View name Castle.MonoRail.Framework.MonoRailException:

Re: Using Rescue Attribute

2009-06-24 Thread Jan Limpens
Ah, so it seems, once you define a method in the rescue attribute, the Rescue(...) is not called anymore. Seems by design, I just wonder if this is was one would expect - I certainly did not. 2009/6/24 Jan Limpens jan.limp...@gmail.com Debugging shows, my Json() method is called on the rescue,

Re: How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Wayne Douglas
did just stumble accross this: http://www.orbitone.com/en/blog/archive/2009/06/23/adding-fluent-nhibernate-support-for-castle-windsor%E2%80%99s-nhibernate-integration.aspx not sure if it's any help~? On Wed, Jun 24, 2009 at 1:17 PM, Paladin_zadirk...@gmail.com wrote: Thanks for the feedback

Re: How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Tuna Toksoz
Using Fluent NH is just one step to fluency. Still, the facility would need some api around the configuration. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Wed, Jun 24, 2009 at 6:51 PM, Wayne

Re: How do I fluently configure the NHibernateIntegration Facility?

2009-06-24 Thread Tuna Toksoz
BTW, you can easily integrate FNH by implementing IConfigurationBuilder. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Wed, Jun 24, 2009 at 9:25 PM, Tuna Toksoz tehl...@gmail.com wrote: Using

Object relations and datagrid

2009-06-24 Thread JimmyJamz
Good morning, I have a question regarding object relations and trying to display information on a datagrid. To give a little background on how the objects are currently setup, I am dealing with three different classes. Assignment, AssignmentEmployee, and the Employee class. Essentially we

Re: Endless loop invoking a method on a Proxy

2009-06-24 Thread Ayende Rahien
That is the expected behavior.Invoking a method using Invoke will mean that you get back to the interceptor. The workaround you specified is how this should work. On Thu, Jun 25, 2009 at 2:55 AM, Belvasis belvasis...@googlemail.comwrote: Hi, I have the following problem: I want to