Patent ID: 7472400

Claim:
A method for processing an invocation using a dynamically generated wrapper, comprising: receiving an invocation by a wrapper object, the wrapper object instantiated from a wrapper class, the wrapper class extended from a superclass which implements a wrapper interface that includes a pre-invocation handler and a post-invocation handler, the invocation directed to a wrapped resource adapter by an application; initiating pre-processing by the wrapper object, wherein the pre-processing code includes calling the pre-invocation handler, wherein the pre-invocation handler is configured to execute server-side code, wherein the server-side code includes transaction processing code; calling the wrapped resource adapter by the wrapper object; receiving a result from the wrapped resource adapter by the wrapper object; initiating post-processing by the wrapper object, wherein post-processing including calling the post-invocation handler, wherein the post-invocation handler is configured to perform post-processing server side tasks, wherein the post-processing server-side tasks include transaction management; and provide the result to the application; wherein the superclass has a member variable to hold a vendor object, a non-argument constructor to instantiate the wrapper object, and an init method to initialize the wrapper object.