A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document of the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
The following applications are cross-referenced and incorporated herein by reference:
U.S. patent application Ser. No. 10/271,194 entitled “Application View Component for System Integration,” by Mitch Upton, filed Oct. 15, 2002.
U.S. patent application Ser. No. 10/293,674 entitled “High Availability Event Topic,” by Tim potter et al., filed Nov. 13, 2002.
U.S. patent application Ser. No. 10/293,655 entitled “High Availability Application View Deployment,: by Tim Potter et al., filed Nov. 13, 2002.
U.S. patent application Ser. No. 10/293,656 entitled “High Availability for Event Forwarding,” by Tim Potter et al., filed Nov. 13, 2002.
The present invention relates to the availability of services such as JMS across a network or in a server cluster.
In present application integration (AI) systems, there can be several single points of failure. These single points of failure can include deployment or management facilities, event forwarding, event topics, remote clients, event subscriptions, response listeners, and response queues. Each of these features is tied to a single server within a server cluster. If that single server crashes, the entire AI application can become irreparably damaged and must be rebooted via a server reboot.
Single points of failure such as request and response queue are used for processing asynchronous requests. Current implementations of asynchronous service request processing utilize a single physical request queue and response queue per server instance. In the event of a node failure, all asynchronous requests and responses within a given JMS server, for example, become unavailable until the JMS server is restarted.
Systems and methods in accordance with the present invention can overcome deficiencies in prior art systems by allowing for high-availability processing of asynchronous requests in a single transaction. A distributed request queue can be used to receive and store a service request, such as from a user or client application. A service processor can pull the service request from the request queue and invoke the service for the service request, such as to an enterprise information system. The service processor can receive the service response from the invoked service and forward the service response to a distributed response queue. The distributed response queue can hold the service response until the response is retrieved for the user or client application. An application view client can act on behalf of the user or client application, sending the service request to the distributed request queue and retrieving the service response from the distributed response queue. The application view client can generate failure recovery semantics for the client application in the event of a failure. The application view can also determine whether any service responses are waiting in the distributed response queue for the client application.
These systems and methods can be used in a server cluster. There can be a service processor deployed on every node in the cluster, each of which can listen to a given distributed request queue. This allows a service to be migrated between nodes in the cluster in the event of a node failure.
Other features, aspects, and objects of the invention can be obtained from a review of the specification, the figures, and the claims.
A system and method in accordance with one embodiment of the present invention can overcome deficiencies in present asynchronous messaging systems by taking advantage of asynchronous request and response queues, as well as asynchronous request and response processors. A client may wish to invoke a service asynchronously in order to begin and/or continue processing other matters, instead of simply waiting for the response. For example, a long running process such as a batch process run against an SAP system or database can take minutes or even hours. Asynchronous requests can allow a client to send the request and then move on to other business.
The use of server clustering allows an AI component to be used in a scalable and highly available fashion. A highly available component does not have any single points of failure, and can have the ability to migrate services from failed nodes to live nodes in a cluster. Any service offered by the AI component can be targeted to several nodes in a cluster. In the event of a node failure in the cluster, the services located on the failed node can be migrated to another live node in the cluster.
In the event of a crash of a cluster or managed server, the AI application can continue accepting new work. The acceptance of new work can include deploying new and undeploying old application views and connection factories, monitoring of old application views and connection factories, delivering events from adapters, and servicing both synchronous and asynchronoushronous service invocations. An AI application can also support the manual migration of services on the failed node to a live node, such as a singleton message-driven Enterprise JavaBean (MDB) listening on a physical destination managed by a failed JMS server. Application integration can use a singleton MDB if a customer needs ordered event processing, for example. An AI application can notify users in an understandable and/or predictable way that in-flight transactions have been cancelled or rolled-back, and should be retried. Wherever possible, an AI application can retry the transaction after reestablishing connections to make use of resources on another live server.
In the event of an administration (admin) server failure, an AI application can do all the tasks mentioned with respect to a crash of a cluster or managed server. The AI application can also notify users that deployment or undeployment is unavailable while the admin server is unavailable. The AI application can still boot or reboot successfully using the previous domain and/or server configuration.
A system and method in accordance with one embodiment of the present invention allows asynchronous requests and responses to be available within a given JMS server, even in the event of a node failure. Request and response queues, such as ASYNC_REQUEST_QUEUE and ASYNC_RESPONSE_QUEUE, can be deployed as distributed queues in a cluster. A request processor, such as AsyncServiceRequestProcessor, can be packaged as an MDB. Such a system allows the processing of asynchronous requests and responses even if the JMS server that accepted the requests crashes or becomes otherwise unavailable.
In the event that a physical queue fails before an asynchronous service request is received by the appropriate MDB, the request can be unavailable until the physical queue comes back on line. This can hold true for asynchronous service responses. Using a system in accordance with one embodiment of the present invention, an asynchronous service processor MDB can be deployed on a single distributed JMS queue, such as ASYNC_REQUEST_QUEUE. This deployment removes the need to maintain and manage a pool of asynchronous request processor threads. An asynchronous service processor MDB can be last in the deployment order for the Al application, and can be deployed from a JAR file such as “ai-asyncprocessor-ejb.jar.”
The user or client application making the request can register a message listener 106, such that the user or client application can be informed that a message is ready and waiting to be received. An asynchronous service processor 110 can pull a request off the asynchronous request queue 108, invoke the asynchronous service against an Enterprise Information System (EIS) 118, and wait for the response. When the asynchronous service response comes back, the asynchronous service processor 110 can put the response onto the response queue 112. In this embodiment, this processing is accomplished as a single transaction.
The application view client 100 can instantiate an application view instance 102. The client 100 can have the option of supplying a durable client identifier at the time of construction. The durable client identifier can be used as a correlation identifier for asynchronous response messages. The client 100 can invoke an asynchronous service method, such as “invokeServiceAsync”, and can pass a request document and response listener 104, such as AsyncServiceResponseListener, to handle the response.
An application view instance 102 can create a service request object, such as AsyncServiceRequest, and can send the object to a request queue 108, such as ASYNC_REQUEST_QUEUE. The service request object can contain the name of the destination to which the response listener is pinned. A service processor MDB 110 can use this information to determine the physical destination to receive the response. If the request object does not contain the name of a response destination, the service processor MBD 110 can use the destination set on the JMS message via a call to a method such as JMSReplyTo( ). If a client only supplies a service response listener 104 to the application view, such as:
In a cluster, an asynchronous request queue 108 can be deployed as a distributed JMS queue. Each message can be sent to a single physical queue, and not be forwarded or replicated in any way. As such, the message is only available from the physical queue to which it was sent. If that physical queue becomes unavailable before a given message is received, the message or AsyncServiceRequest can be unavailable until that physical queue comes back on-line. It is not enough to send a message to a distributed queue and expect the message to be received by a receiver of that distributed queue. Since the message is sent to only one physical queue, there must be a queue receiver receiving or listening on that physical queue. Thus, an AI asynchronous service processor MDB can be deployed on all nodes in a cluster.
An asynchronous service processor MDB can receive the message from the queue in a first-in, first-out (FIFO) manner. The service processor can use the asynchronous service request object in a JMS ObjectMessage to determine the qualified name, service name, request document, and response destination of the application view. The asynchronous service processor 110 can use an application view EJB 114 to invoke the service synchronously. The service can be translated into a synchronous CCI-based request and/or response to the resource adapter 116.
When an asynchronous service processor MDB 110 receives the response, the response can be encapsulated into an asynchronous service response object and sent to the response destination provided in the asynchronous service request object. The asynchronous service processor MDB 110 cannot just send the response to the asynchronous response queue 112, the response needs to be sent to a specific physical destination. This specific physical destination, or queue, can have been established by the application view instance 102 running on the client when, for example, an application view EJB method such as getAsyncResponseQueueJNDIName( ) was called.
If the client application fails and a new application view is created with the same durable client identifier, there is a chance that the new application view will be pinned to a different physical JMS queue than the JMS queue that the client was using prior to the failure. Consequently, the application view can use recover logic to query the other members for responses that match the durable client identifier once the client application restarts.
An application view message listener 106 instance, created when the application view instance 102 was instantiated, can receive the asynchronous service response message as a JMS ObjectMessage, and can pass the message to the asynchronous service response listener 104 supplied in the “invokeServiceAsync” call.
The foregoing description of preferred embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to one of ordinary skill in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.
This application claims priority to U.S. Provisional Patent Application No. 60/377,332, filed May 2, 2002, entitled “HIGH AVAILABILITY FOR ASYNCHRONOUS REQUESTS,” which is hereby incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5283897 | Georgiadis et al. | Feb 1994 | A |
5321841 | East et al. | Jun 1994 | A |
5544318 | Schmitz et al. | Aug 1996 | A |
5748975 | Van De Vanter | May 1998 | A |
5801958 | Dangelo et al. | Sep 1998 | A |
5828847 | Gehr et al. | Oct 1998 | A |
5835769 | Jervis et al. | Nov 1998 | A |
5836014 | Faiman, Jr. | Nov 1998 | A |
5862327 | Kwang et al. | Jan 1999 | A |
5892913 | Adiga et al. | Apr 1999 | A |
5933838 | Lomet | Aug 1999 | A |
5950010 | Hesse et al. | Sep 1999 | A |
5951694 | Choquier et al. | Sep 1999 | A |
5961593 | Gabber et al. | Oct 1999 | A |
5966535 | Benedikt et al. | Oct 1999 | A |
6012094 | Leymann et al. | Jan 2000 | A |
6021443 | Bracho et al. | Feb 2000 | A |
6023722 | Colyer | Feb 2000 | A |
6028997 | Leymann et al. | Feb 2000 | A |
6029000 | Woolsey et al. | Feb 2000 | A |
6044217 | Brealey et al. | Mar 2000 | A |
6061721 | Ismael et al. | May 2000 | A |
6067623 | Blakley, III et al. | May 2000 | A |
6070184 | Blount et al. | May 2000 | A |
6078943 | Yu | Jun 2000 | A |
6081840 | Zhao | Jun 2000 | A |
6085030 | Whitehead et al. | Jul 2000 | A |
6119143 | Dias et al. | Sep 2000 | A |
6119149 | Notani | Sep 2000 | A |
6128279 | O'Neil et al. | Oct 2000 | A |
6131118 | Stupek, Jr. et al. | Oct 2000 | A |
6141686 | Jackowski et al. | Oct 2000 | A |
6154738 | Call | Nov 2000 | A |
6154769 | Cherkasova et al. | Nov 2000 | A |
6189044 | Thomson et al. | Feb 2001 | B1 |
6195680 | Goldszmidt et al. | Feb 2001 | B1 |
6222533 | Notani et al. | Apr 2001 | B1 |
6226666 | Chang et al. | May 2001 | B1 |
6226675 | Meltzer et al. | May 2001 | B1 |
6226788 | Schoening et al. | May 2001 | B1 |
6230160 | Chan et al. | May 2001 | B1 |
6230287 | Pinard et al. | May 2001 | B1 |
6230309 | Turner et al. | May 2001 | B1 |
6233607 | Taylor et al. | May 2001 | B1 |
6237135 | Timbol | May 2001 | B1 |
6253230 | Couland et al. | Jun 2001 | B1 |
6269373 | Apte et al. | Jul 2001 | B1 |
6282711 | Halpern et al. | Aug 2001 | B1 |
6292830 | Taylor et al. | Sep 2001 | B1 |
6292932 | Baisley et al. | Sep 2001 | B1 |
6317786 | Yamane et al. | Nov 2001 | B1 |
6324681 | Sebesta et al. | Nov 2001 | B1 |
6330569 | Baisley et al. | Dec 2001 | B1 |
6336122 | Lee et al. | Jan 2002 | B1 |
6338064 | Ault et al. | Jan 2002 | B1 |
6343265 | Glebov et al. | Jan 2002 | B1 |
6345283 | Anderson | Feb 2002 | B1 |
6348970 | Marx | Feb 2002 | B1 |
6349408 | Smith | Feb 2002 | B1 |
6353923 | Bogel et al. | Mar 2002 | B1 |
6356906 | Lippert et al. | Mar 2002 | B1 |
6360221 | Gough et al. | Mar 2002 | B1 |
6374297 | Wolf et al. | Apr 2002 | B1 |
6377939 | Young | Apr 2002 | B1 |
6393605 | Loomans | May 2002 | B1 |
6408311 | Baisley et al. | Jun 2002 | B1 |
6438594 | Bowman-Armuah | Aug 2002 | B1 |
6442565 | Tyra et al. | Aug 2002 | B1 |
6442611 | Navarre et al. | Aug 2002 | B1 |
6445711 | Scheel et al. | Sep 2002 | B1 |
6463503 | Jones et al. | Oct 2002 | B1 |
6515967 | Wei et al. | Feb 2003 | B1 |
6535908 | Johnson et al. | Mar 2003 | B1 |
6549949 | Bowman-Amuah | Apr 2003 | B1 |
6553425 | Shah et al. | Apr 2003 | B1 |
6560769 | Moore et al. | May 2003 | B1 |
6594693 | Borwankar | Jul 2003 | B1 |
6594700 | Graham et al. | Jul 2003 | B1 |
6604198 | Beckman et al. | Aug 2003 | B1 |
6622168 | Datta | Sep 2003 | B1 |
6678518 | Eerola | Jan 2004 | B2 |
6687848 | Najmi | Feb 2004 | B1 |
6697849 | Carlson | Feb 2004 | B1 |
6721747 | Lipkin | Apr 2004 | B2 |
6732237 | Jacobs et al. | May 2004 | B1 |
6748420 | Quatrano et al. | Jun 2004 | B1 |
6782416 | Cochran et al. | Aug 2004 | B2 |
6795967 | Evans et al. | Sep 2004 | B1 |
6802000 | Greene et al. | Oct 2004 | B1 |
6804686 | Stone et al. | Oct 2004 | B1 |
6850979 | Saulpaugh et al. | Feb 2005 | B1 |
6857012 | Sim et al. | Feb 2005 | B2 |
6859834 | Arora et al. | Feb 2005 | B1 |
6889244 | Gaither et al. | May 2005 | B1 |
6910041 | Exton et al. | Jun 2005 | B2 |
6915519 | Williamson et al. | Jul 2005 | B2 |
6918084 | Slaughter et al. | Jul 2005 | B1 |
6925482 | Gopal | Aug 2005 | B2 |
6925492 | Shirriff | Aug 2005 | B2 |
6950825 | Chang | Sep 2005 | B2 |
6963914 | Breitbart et al. | Nov 2005 | B1 |
6970939 | Sim | Nov 2005 | B2 |
6976086 | Sadeghi et al. | Dec 2005 | B2 |
6983328 | Beged-Dov et al. | Jan 2006 | B2 |
7047287 | Sim et al. | May 2006 | B2 |
7054858 | Sutherland | May 2006 | B2 |
7058014 | Sim | Jun 2006 | B2 |
7058637 | Britton et al. | Jun 2006 | B2 |
7117504 | Smith et al. | Oct 2006 | B2 |
20020004848 | Sudarshan et al. | Jan 2002 | A1 |
20020010803 | Oberstein et al. | Jan 2002 | A1 |
20020016759 | Marcready et al. | Feb 2002 | A1 |
20020026630 | Schmidt et al. | Feb 2002 | A1 |
20020078365 | Burnette et al. | Jun 2002 | A1 |
20020083075 | Brummel et al. | Jun 2002 | A1 |
20020083118 | Sim | Jun 2002 | A1 |
20020083187 | Sim et al. | Jun 2002 | A1 |
20020111820 | Massey | Aug 2002 | A1 |
20020120685 | Srivastava et al. | Aug 2002 | A1 |
20020120786 | Sehayek et al. | Aug 2002 | A1 |
20020133491 | Sim et al. | Sep 2002 | A1 |
20020152106 | Stoxen et al. | Oct 2002 | A1 |
20020165936 | Alston et al. | Nov 2002 | A1 |
20020184145 | Sijacic et al. | Dec 2002 | A1 |
20020184610 | Chong et al. | Dec 2002 | A1 |
20020194495 | Gladstone et al. | Dec 2002 | A1 |
20020198800 | Shamrakov | Dec 2002 | A1 |
20030004746 | Kheirolomoom et al. | Jan 2003 | A1 |
20030005181 | Bau et al. | Jan 2003 | A1 |
20030014439 | Boughannam | Jan 2003 | A1 |
20030018665 | Dovin et al. | Jan 2003 | A1 |
20030018832 | Amirisetty et al. | Jan 2003 | A1 |
20030031176 | Sim | Feb 2003 | A1 |
20030033437 | Fischer et al. | Feb 2003 | A1 |
20030043191 | Tinsley et al. | Mar 2003 | A1 |
20030046266 | Mullins et al. | Mar 2003 | A1 |
20030055868 | Fletcher et al. | Mar 2003 | A1 |
20030055878 | Fletcher et al. | Mar 2003 | A1 |
20030061405 | Fisher et al. | Mar 2003 | A1 |
20030074467 | Oblak et al. | Apr 2003 | A1 |
20030093402 | Upton | May 2003 | A1 |
20030093403 | Upton | May 2003 | A1 |
20030093470 | Upton | May 2003 | A1 |
20030093471 | Upton | May 2003 | A1 |
20030097345 | Upton | May 2003 | A1 |
20030097574 | Upton | May 2003 | A1 |
20030105884 | Upton | Jun 2003 | A1 |
20030110117 | Saidenberg et al. | Jun 2003 | A1 |
20030110315 | Upton | Jun 2003 | A1 |
20030110446 | Nemer | Jun 2003 | A1 |
20030126136 | Omoigui | Jul 2003 | A1 |
20030145047 | Upton | Jul 2003 | A1 |
20030149791 | Kane et al. | Aug 2003 | A1 |
20030167358 | Marvin et al. | Sep 2003 | A1 |
20030182452 | Upton | Sep 2003 | A1 |
20030196168 | Hu | Oct 2003 | A1 |
20030233631 | Curry | Dec 2003 | A1 |
20040015368 | Potter et al. | Jan 2004 | A1 |
20040068568 | Griffin | Apr 2004 | A1 |
20040133660 | Junghuber et al. | Jul 2004 | A1 |
20040148336 | Hubbard et al. | Jul 2004 | A1 |
20040204976 | Oyama et al. | Oct 2004 | A1 |
20040216086 | Bau | Oct 2004 | A1 |
20040225995 | Marvin et al. | Nov 2004 | A1 |
20040260715 | Mongeon et al. | Dec 2004 | A1 |
20050033663 | Narin et al. | Feb 2005 | A1 |
20050223392 | Cox et al. | Oct 2005 | A1 |
Number | Date | Country |
---|---|---|
1 006 443 | Jun 2000 | EP |
1 061 445 | Dec 2000 | EP |
WO 0190884 | Nov 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20040015368 A1 | Jan 2004 | US |
Number | Date | Country | |
---|---|---|---|
60377332 | May 2002 | US |