CORBA - Java SDK 1.4.1 ORB - Timeout a Blocked Remote Method Call?

Posted on 2005-05-11
Last Modified: 2007-12-19


In some cases a remote method call can block indefinitely.
What is the easiest way to return control to the calling thread?

The Java SDK 1.4.1 ORB doesn't seem to have any configurable timeouts?
Do I have to wrap the objects in a calling thread?

Doesn't Java 1.5 have a simple way of doing this?
Question by:jyukes
    1 Comment
    LVL 15

    Accepted Solution

    In java 1.5 You can set both connectin and read (soTimeout) timeouts for sockets. though in the corba world
    you deal with a specific ORB vendor and its generated stubs/ties so and you don't deal directly with sockets.
    When you create an ORB you can pass to its init method configuration properties which can include network properties
    such as request timeout. For  VisiBroker see:
    and I think in the case of sun default provider, com.sun.corba.iiop.ORB,  its org.omg.CORBA.TIMEOUT
    (see both: com/sun/corba/se/impl/orbutil/ and org/omg/CORBA/

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    copyEvens challenge 6 47
    array220 challenge 8 32
    word0 challenge 3 33
    Modeling a class in java 5 24
    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now