Resource Adapter Suspend Mechanism for Maintenance Quiescing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The J2EE Connector Architecture does not provide a mechanism for resource adapters to suspend work, which is necessary for maintenance processes like versioning or change-outs, as it leaves the design of connectors to each application server vendor.
Innovation Solution
Implementing a suspendable interface and suspend/resume mechanism in resource adapters that allow them to enter a suspended state, stopping ongoing transactions and queuing or rejecting new work, enabling quiescing during maintenance processes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If resource adapters follow J2EE Connector Architecture specification, then interoperability between different application servers is achieved, but the ability to suspend work during maintenance is not provided
Solution Approach 1:
The patent introduces suspend and resume methods that can be called before and after maintenance operations. The suspend method is invoked preliminarily to stop work intake, and the resume method is called after maintenance to restore work processing, enabling controlled maintenance windows without system downtime
Solution Approach 2:
The resource adapter's work processing is segmented into suspendable work units that can be individually controlled. The work queue is divided into in-flight transactions and new work, allowing selective suspension of new work acceptance while maintaining the ability to complete ongoing transactions
2Productivity
If resource adapters accept all incoming work, then productivity is maximized, but maintenance operations cannot be performed
Solution Approach 1:
The resource adapter dynamically adjusts its work acceptance behavior based on operational state. The suspend method transitions the adapter to a state where it stops accepting new work but continues processing in-flight transactions, and the resume method transitions it back to full operational capacity, providing flexible control over productivity vs. maintenance needs
Solution Approach 2:
The patent ensures continuity of useful action by allowing in-flight transactions to complete even when new work is suspended. This maintains productive work on committed transactions while enabling maintenance operations, and upon resume, the adapter seamlessly returns to accepting new work without interruption to ongoing operations
3Reliability
If resource adapters stop work immediately, then maintenance safety is improved, but in-flight transactions may be lost
Solution Approach 1:
The suspend method provides beforehand cushioning by gracefully stopping the acceptance of new work before maintenance begins. This prevents new work from being interrupted mid-processing, ensuring that only cleanly completed transactions are affected while protecting in-flight transactions from being lost during maintenance operations
Data Source
AI summary
In accordance with embodiments, there are provided mechanisms and methods for suspending work by a resource adapter. These mechanisms and methods for suspending work by a resource adapter can enable embodiments to provide the capability to start and stop work performed by a resource adapter to connector architectures. The ability of embodiments to provide the capability to start and stop work performed by a resource adapter can enable users of Connector Architectures to quiesce an adapter's inbound/outbound or work sections. Such capability can enable an adapter embodiment to complete in-flight transactions but not accept new inbound transactions until a request to resume operation is received. Resource adapters may be quiesced during a versioning or change out process or other maintenance processes for example.


