×

Generating a timeout in a computer software application

  • US 7,774,779 B2
  • Filed: 11/18/2005
  • Issued: 08/10/2010
  • Est. Priority Date: 11/18/2005
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • invoking a timeout helper main thread from a session bean for an outbound call associated with a container;

    creating a timeout helper worker thread by the timeout helper main thread;

    starting a local timer with the timeout helper worker thread to detect a first timeout condition based on a first timeout interval;

    initiating, by the timeout helper worker thread, a client object request broker (ORB) to detect a second timeout condition based on a second timeout interval, wherein a fixed value N>

    0 is added to the first timeout interval to determine the second timeout interval;

    returning a result object from the timeout helper worker thread to the timeout helper main thread when the timeout helper worker thread receives the result object for the outbound call;

    throwing a timeout exception from the timeout helper main thread to the session bean when the outbound call has not completed within the first timeout interval;

    throwing a second exception by the client ORB to the timeout helper worker thread when the outbound call has not completed within the second timeout interval, wherein the second exception is used to stop communication on the client ORB; and

    reclaiming one or more resources associated with the outbound call in response to the second exception with a virtual machine of a computer system.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×