473,403 Members | 2,338 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,403 software developers and data experts.

Invoking a OneWay method on remote object that is not present

Hi,

In my project I have a seperate logging application. I use remoting to log
to it. The remoted object exposes a certain (log-)interface, and the methods
therein are all OneWay methods (decorated with the OneWay attribute).

In my real application, I connect to the remoted log-object (using
RemotingServices.Connect). This returns a proxy for the remoted object, which
I cast to the logging-interface.

This always succeeds because the Connect call simply returns a proxy. So at
the point of connection, I cannot deduce whether the remoted object is
actually alive (or started). Since all the methods in the logging interface
are OneWay, calling them always succeeds, so again there is no way of telling
whether the remoted object is present.

The problem is the following. I start my application, but not my
logging-application (which hosts the remoted logging object). My application
logs a lot and it calls the methods in the logging-interface without getting
remoting-exceptions whatsoever. But after a few method calls on the
logging-interface, these method calls start to become _very_ slow, so slow
that my program seems to hang.

I suspect that a call to a OneWay method posts these calls in a queue
somewhere, and that the queue starts to fill up after a while because the
queue is never emptied (since my remoted object is not alive).

Anyway, I don't know a solution to this. Does anyone know how to solve this
issue?

I thought about making one dummy-method in the interface just to ensure that
the logging-application is started. This dummy-method would not be OneWay,
and if calling it throws a remoting exception then I can just disable the
logging calls. But that seems more like a workaround and not a real solution.

Any input is appreciated.

Thanks,
--
Tom Tempelaere.
Nov 16 '05 #1
0 2233

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

Similar topics

3
by: Nidhee Pathak via .NET 247 | last post by:
Hi, I am trying to run an exe present on the remote machine using the ManagementClass object. I connect to the remote machine using ObjectManagementScope class, but i am not being able to run the...
0
by: TT (Tom Tempelaere) | last post by:
Hi, In my project I have a seperate logging application. I use remoting to log to it. The remoted object exposes a certain (log-)interface, and the methods therein are all OneWay methods...
3
by: Gary Floam | last post by:
Hello, I would like to have one Access program scan a directory and look at the form, report and module code of any Access databases it finds to search for keywords. The best way I have found...
0
by: archana | last post by:
Hi all, I am having problem in one web method which i am running asynchronously I set oneway attribute in web method. What i want is once client called this web method this should start...
1
by: George Jordanov Ivanov | last post by:
Folks, I have a Web service with the two possible types of methods - OneWay and Request/Response. The problem is while debugging I cannot step into the OneWay methods, while trying to do the...
0
by: DMT012 | last post by:
I have a WebMethod with the attribute OneWay set to True. When the acknowledgement gets sent back to the calling computer the content-type HTTP header is not present, and my firewall drops the...
2
by: archana | last post by:
Hi all, I am having one confusion regarding webmethod's fire and forget behaviour. Say suppose i have method like public void StartStatsCrunch() {
0
by: sirmoreno | last post by:
Hi, In my web site I have some long tasks that I want to call without delaying the page rendering - without making the thread that handels the page request wait for the long task to end. I...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.