×

Method and system for providing highly available services based on a load balancing policy and a reusable connection context object

  • US 7,058,717 B2
  • Filed: 07/25/2002
  • Issued: 06/06/2006
  • Est. Priority Date: 07/25/2002
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for providing highly available services, said method comprising:

  • providing a connection pool, said connection pool including a connection for each of a plurality of servers, wherein the connection pool comprises a pool of reusable connection context objects, each reusable connection context object containing information about an associated server in the plurality of servers;

    applying a load-balancing policy to said connection pool;

    assigning a reusable connection context object from said connection pool to a client, according to said load-balancing policy, in response to a request from the client; and

    managing a content of the connection pool, wherein managing the content of the connection pool comprises periodically waking a connection pool management thread that, for each connection in the connection pool;

    determines if the connection in the connection pool was accessed during a previous sleep period of the connection pool management thread;

    checks availability of a server associated with the connection if the connection was not accessed during a previous sleep period of the connection pool management thread;

    maintains a reusable connection context object associated with the connection in the connection pool if the connection was accessed during the previous sleep period of the connection pool management thread or the check of the availability of the server results in an indication that the server is available; and

    removes the reusable connection context object associated with the connection from the connection pool if the check of the availability results in an indication that the server is not available.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×