Claims
- 1. A computer program product for execution by a server computer for dynamically generating a wrapper object, comprising:
computer code for receiving a vendor object and superclass; computer code for performing reflection on the vendor class; computer code for generating a wrapper class; computer code for instantiating the wrapper class, the instantiating including generating a wrapper object as an instance of the wrapper class; and computer code for associating the vendor object with the wrapper object.
- 2. The computer program product of claim 1 wherein the wrapper object is dynamically generated at runtime.
- 3. The computer program product of claim 1 wherein the superclass is one of a pre-existing JDBC, JMS, or connector class.
- 4. The computer program product of claim 1 wherein the superclass includes logic to handle server side tasks.
- 5. The computer program product of claim 1 wherein the wrapper class is generated in bytecode.
- 6. The computer program product of claim 5 wherein bytecode is generated for vendor methods not implemented in the superclass.
- 7. The computer program product of claim 5 wherein the bytecode is generated using hot code generation.
- 8. The computer program product of claim 1 wherein providing the wrapper object to the an application program, allowing the application program to access standard features and non-standard vendor extensions.
- 9. The computer program product of claim 1 wherein the standard extensions are J2EE extensions.
- 10. A computer program product for execution by a server computer for processing an invocation using a dynamically generated wrapper, comprising:
computer code for receiving an invocation call by a wrapper object, the invocation call directed to a wrapped vendor object by an application program; computer code for initiating pre-processing by the wrapper object; computer code for calling the wrapped vendor object by the wrapper object; computer code for receiving a result from the wrapped vendor object by the wrapper object; computer code for initiating post-processing by the wrapper object; and computer code for provide the result to the application program.
- 11. The computer program product of claim 10 wherein the pre-processing including calling a pre-invocation handler.
- 12. The computer program product of claim 10 wherein the pre-invocation handler is configured to execute server-side code.
- 13. The computer program product of claim 12 wherein the server-side code includes global transaction processing code.
- 14. The computer program product of claim 10 wherein post-processing including calling a post-invocation handler.
- 15. The computer program product of claim 14 wherein the post-invocation handler is configured to perform post-processing server side tasks.
- 16. The computer program product of claim 15 wherein the post-processing server-side tasks include global transaction management.
CLAIM TO PRIORITY
[0001] The present application claims the benefit of priority under 35 U.S.C. §119(e) to U.S. Provisional Patent Application entitled “DYNAMICALLY GENERATED WRAPPER”, Application No. 60/450,901, filed on Feb. 28, 2003, which application is incorporated herein by reference.
[0002] The present application is related to the following United States Patents and Patent Applications, which patents/applications are assigned to the owner of the present invention, and which patents/applications are incorporated by reference herein in their entirety:
[0003] U.S. patent application Ser. No. 10/______, entitled “DYNAMIC CODE GENERATION SYSTEM”, filed on ______, 2003, attorney reference number BEA-1316US2; and
[0004] U.S. patent application Ser. No. 10/______, entitled “METHOD FOR DYNAMICALLY GENERATING A WRAPPER”, filed on ______, 2003.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60450901 |
Feb 2003 |
US |