473,230 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

problem with client activated object's lease time

Hi

I have a problem with my client activated objects. The service has
very short lease time. Client calls function add(2,3) which saves
total sum of 6. Then client performs Thread.Sleep(6) which is longer
than service lease time. When I call add again the total is 12. Why
the object is not leased? - if i use wellknown (Singleton ) the object
is propertly leased ( total sum is back 0 )

Also how can I get wsdl of the service? In wellknown it is simple - I
need it for SOAPSUDS

Here are server and client configuration files:
///SERVER
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="asd">
<lifetime leaseTime="1s" sponsorshipTimeout="1s"
renewOnCallTime="1s" />
<service>
<activated type="RemoteClass.Mathematica, RemoteClass"/>
</service>
<channels>
<channel ref="http" port="5000">
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
///CLIENT
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="RemoteClient">
<client url="http://localhost:5000">
<activated type="RemoteClass.Mathematica, RemoteClass"/>
</client>
<channels>
<channel ref="http" port="0">
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
RemotingConfiguration.Configure("RemoteClient.exe. config",
RemoteClass.Mathematica obj = new RemoteClass.Mathematica();
Console.WriteLine(obj.GetProduct(2, 3));
Console.WriteLine(obj.Total);

Thread.Sleep(6000);

Console.WriteLine(obj.GetProduct(2, 3));
Console.WriteLine(obj.Total);
Console.WriteLine(obj.GetHostLocation()); // obj is in the proper
AppDomain ( server app domain )
Console.ReadLine();

Best Regards
Piotr Kolodziej
Jun 27 '08 #1
0 1151

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JJ | last post by:
I want to create a client activated object using TcpChannel. The only way I could get it to work, though, is to provide the client with the remoted object's implementation. I'd rather not do this. ...
4
by: Martin Maat | last post by:
Hi. I am using a COM component from managed code doing the following: Type type = Type.GetTypeFromCLSID(new Guid("B70FAAE6-4F85-480A-B1C5-DC9A6F175BFC"), serverMachineName, true); history =...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
0
by: Tomislav Bartolin | last post by:
Hi, I have a singleton and a singlecall MBR objects hosted by IIS. Singleton object can be activated either by the singlecall object or by the remote client application. I want the singleton...
4
by: dynastar | last post by:
I'm trying to send custom COMExceptions from my C# server. My test client in C# has no problem reading the HRESULT I send (say, 0x80040002). Needless to say, the MFC client in C++ allows this...
12
by: Steven Berkovitz | last post by:
I have several ASP.NET applications with near identical web.config files. In one of them I am successfuly able to bind to an assembly while on others I am not. All of them have the following...
1
by: Steve K. | last post by:
I'm working on my first remoting project. It's going well and I have one (that I know of!) bug left to work out. I understand how remote objects have leases and those leases expire. I fixed a...
0
by: Piotrekk | last post by:
Hi I have a problem with my client activated objects. The service has very short lease time. Client calls function GetProdct(2,3) which saves total product of 6. Then client performs...
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.