PDA

View Full Version : How do I do remoting using Spring in IIS?


cds
09-14-2005, 11:28 AM
Hi Guys

Just having an initial play around with Spring.NET having successfully used the Java flavour in a previous life.

So far it's all going well. I downloaded the latest (dated August 15) and have got that going on the client side. Basically I have a class library with some remoted objects deployed in IIS in the normal fashion, using the web.config file to expose my interfaces.

On the client side I'm using the Spring.Remoting.SaoFactoryObject to talk to my remote object and that is working nicely.

But, how can I use Spring.NET to configure things on the server side in IIS? I think I understand how to do this if I had my own server (.exe or Windows Service) but how do I do the configuration stuff for IIS?

Any help much appreciated.

Craig

Mark Pollack
09-23-2005, 02:38 PM
Hi Craig,

Sorry for the long delay in replying. Just to let you know that I haven't tried that configuration. It maybe necessary to do something similar as is done with the web service exporter. I'll investigate and get back to you.

Cheers,
Mark

cds
09-23-2005, 08:46 PM
Hi Mark

Thanks for the reply.

Having thought about this a little, I'm not sure that this is actually possible. When you host a class library in IIS, AFAIK IIIS is responsible for instantiation of objects and they operate on a single-call or singleton basis.

I don't think there is any way of controlling instantiation without resorting to having a single object that, by convention, is accessed first that would then instantiate other objects. IOW we're not in control of the initial setup as we would be in a remoting library hosted in a console app or windows service.

However, I may be wrong (and would love to be).

Many thanks...

Craig