Questions tagged [spring.net]

Spring.NET is an open source application framework for developing .NET enterprise applications.

Spring.NET is an open source application framework for developing .NET enterprise applications, inspired by the popular Spring for Java. It provides infrastructural support to make best practices easy practices. Spring.NET consists of several modules, most notably:

For information on additional modules and other background information, see the overview page on the Spring.NET website. Technical documentation is also available on this site.

Related tags

632 questions
0
votes
1 answer

Spring.NET Controller-level logging annotations

I've followed the instructions in https://stackoverflow.com/a/9115510/1170932 and have "before" method invocation logging working. However, rather than add the [SetMethodInfoAsMessage] annotation at every method, I'd rather add it at the…
sming
  • 801
  • 2
  • 12
  • 25
0
votes
1 answer

Spring.Net + NHibernate - The 'http://www.springframework.net/database:provider' element is not declared

I’m having some Spring and NHibernate issues which nobody seems to be able to resolve. I'm using the NorthWind project as an example to go off of. Right now I’m getting this…
McAden
  • 13,714
  • 5
  • 37
  • 63
0
votes
1 answer

NHibernate ISessionFactory that enables filters on OpenSession

I have been trying to create an ISessionFactory that has a list of filters as a property (so it can be specified in the XML configuration) and enables each of the filters whenever OpenSession() is called. Unfortunately, I have been stymied at every…
Michael
  • 1,351
  • 1
  • 11
  • 25
0
votes
1 answer

Spring.NET with NHibernate and quartz transaction (global transaction manager)

I want to use Global transaction manager at my service layer. eg. namespace AssemblyName.Core.Service.Implementation { public class DemoService { public void demo() { save(model); //This is nHibernate transaction …
0
votes
1 answer

Conditional injection using spring.net

I want to be able to inject a property based on a condition using SPRING.NET. Lets say I have two objects A and B and based on the value of a property that I evaluate in code I want to be able to inject A when it is true and inject B when the…
RRR
  • 575
  • 1
  • 11
  • 25
0
votes
1 answer

What's the easiest way to invoke a Spring.NET service exposed over remoting using Python

I have a .NET 3.5 service that is currently exposed using Spring.NET 1.2 over .NET Remoting. I would like to invoke service methods from Python, so am looking for the quickest and easiest way to achieve this. Options I am exploring are: Expose the…
Daniel Fortunov
  • 43,309
  • 26
  • 81
  • 106
0
votes
2 answers

How to create a Spring object type Integer?

Could anyone please help me take a look at this issue since I can only create a Spring object type String? When I try to create another Spring object type, I get the below error Error Class Initialization method…
0
votes
1 answer

Change to singleton in Spring .NET stops updates in NHibernate?

I'm facing an odd problem with my web application. Let me explain my application setup - The application is made with asp .net mvc 3 hosted in IIS 7.x .I use Spring .NET for instantiating my controllers, business layer and repositories. The…
abjbhat
  • 999
  • 3
  • 13
  • 24
0
votes
1 answer

Mocks for service using spring.net for IoC

I'm in the process of creating unit tests for an existing serie of classes that use spring.net IApplicationContext to resolve types and I want to mock the dependencies resolved by spring.net. I'm having problems getting spring.net to use my mocked…
Ed Fox
  • 173
  • 1
  • 9
0
votes
0 answers

Spring.Net + ASP: Page instantiated twice

I've based my project on Spring's Northwind example, but I must be doing something wrong. I'm having Spring construct a DAO object and inject it into an ASP page, which it does, but I see that the same page gets constructed by IIS, without the…
Michael
  • 1,351
  • 1
  • 11
  • 25
0
votes
1 answer

Spring.net - Routing of Assembly:// line in config file - Need a base directory

So, I inherited a project that seems to be using Spring.net extensively to do dependency injection. Every executable module implements a method where it goes to the Application config file for the given module and pulls a value along the lines of…
Sean Duggan
  • 1,105
  • 2
  • 18
  • 48
0
votes
1 answer

managing dynamic connections with spring.net

Imagine a service receives two parameters: ConnectionString and Script. public class MyExecutor { // execute that script in that connection context Execute(String: Script) {...} } My task is to create that service, capable of receiving…
jean
  • 4,159
  • 4
  • 31
  • 52
0
votes
1 answer

How to setup spring.net dependency injection for a web service?

I have been handed a wsdl file + a number of xsd type definition files - the service I need to code against is not ready yet and I need to put together a fake service (so called a stub or mock) in order to be ready when the real thing comes…
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
0
votes
0 answers

Accessing spring.net propery directlly not via object

I know spring.net configures classes to Spring objects. Instances of those classes are returned by Spring.NET framework via getters. I am asked to access spring.net Object property only (that is directly from inside the class using C# property). Is…
TheTechGuy
  • 16,560
  • 16
  • 115
  • 136
0
votes
2 answers

WCF and Spring.nets ServiceExporter

Has anybody successfully using spring.nets Spring.ServiceModel.ServiceExporter with WCF?? Some background..... I'm trying to configure wcf services with spring.net for use in a web application In my first iteration of the project I suceeded by…
iasksillyquestions
  • 5,558
  • 12
  • 53
  • 75