Google Answers Logo
View Question
 
Q: Terminate a Blocking CORBA Call (Java ORB and omniORB) ( No Answer,   2 Comments )
Question  
Subject: Terminate a Blocking CORBA Call (Java ORB and omniORB)
Category: Computers > Programming
Asked by: jamieyukes-ga
List Price: $31.42
Posted: 11 May 2005 06:22 PDT
Expires: 10 Jun 2005 06:22 PDT
Question ID: 520413
Hello,
I'm using the Java SDK 1.4.1_02 for Java and omniORB 3.05 for C++
The Java program is both a client and a server.
The C++ progrma is both a client and a server.

When I invoke a method on a remote object, it can block indefinitely.
How can I set a timeout?  Or otherwise force control to return to the
calling program after some period of time (60 seconds?)

The best answer will detail a solution for both directions...
Java client -> C++ server
C++ client -> Java server
Answer  
There is no answer at this time.

Comments  
Subject: Re: Terminate a Blocking CORBA Call (Java ORB and omniORB)
From: javamaster-ga on 12 May 2005 16:41 PDT
 
Will do Java client making call and client will continue after recieving
result or after 60 seconds.
  Prototype will not have any CORBA. There will be just call to foo()
function which can return result or hang.
  You should specify what to do if 60 seconds expire in the middle of
recieving result.

Asking 55$.
Subject: Re: Terminate a Blocking CORBA Call (Java ORB and omniORB)
From: audrius-ga on 06 Oct 2005 03:28 PDT
 
I think, the server should take care about rejecting requests that
hang the processing thread it for an unlimited time. Otherwise it is
very sensitive for the malicious attack. The task-specific method that
handles the invocation could just verify the parameters first and
throw something like BAD_PARAM or NO_RESOURCES, probably with some
specific minor code set.

As far as I know, there is no standard way to set the socket timeouts
for each CORBA request. In GNU Classpath CORBA your problem would be
reduced into setting the properties
gnu.classpath.CORBA.TOUT_WHILE_READING,
gnu.classpath.CORBA.TOUT_AFTER_RECEIVING and
gnu.classpath.CORBA.TOUT_START_READING_MESSAGE.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy