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 or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
1. Field of the Invention
The current invention relates generally to connector architectures, and more particularly to a J2EE connector architecture for managing resource adapters.
2. Background
The Java™ 2 Platform, Enterprise Edition (J2EE), from Sun Microsystems, Inc. of Palo Alto, Calif., defines a standard for developing multi-tier enterprise applications. A J2EE Connector Architecture is useful for the integration of J2EE-compliant application servers with at least one enterprise information system (EIS). There are typically two parts to this architecture: an EIS vendor-provided resource adapter and an application server to which the resource adapter plugs in. The J2EE Connector Architecture also defines a common client interface (CCI) that can be used to access an EIS. A CCI defines a client API for interacting with heterogeneous EIS systems, which enables application components and Enterprise Application Integration (EAI) frameworks to drive interactions across heterogeneous EIS systems using a common client API.
A resource adapter is a segment of code that represents an Enterprise Information System (EIS). More specifically, a resource adaptor is a system-level software driver used by an application server, such as WebLogic Server, to connect to an enterprise information system (EIS). A resource adapter serves as the “J2EE connector.” The connector architecture implementation supports resource adapters developed by EIS vendors and third-party application developers that can be deployed in any application server supporting the Sun Microsystems J2EE Platform Specification, Version 1.3. Resource adapters contain the Java, and if necessary, the native components required to interact with the EIS.
J2EE Connector Architecture is an architecture for integrating J2EE-compliant application servers with enterprise information systems (EIS). There are two parts to this architecture: an EIS vendor-provided resource adapter and an application server, such as WebLogic Server, by BEA Systems of San Jose, Calif., to which the resource adapter plugs in. This architecture defines a set of contracts, such as transactions, security, and connection management, that both the resource adapter and application server need to support to communicate with one another. The J2EE Connector Architecture also defines a Common Client Interface (CCI) for EIS access. The CCI defines a client API for interacting with heterogeneous EIS's.
What is needed is an improved connector architecture implementation system that is more efficient and allows an administrator to monitor and make changes to connections within the application server as needed.
A connector architecture implementation is provided that includes advantageous features in connection management as well as other areas. In one embodiment of the present invention, connector leaks may be detected both automatically and manually. Connection pools for an EIS may be configured to more efficiently fulfill connection requests. In one embodiment, connection pools are pre-populated when the application server starts up. In another embodiment, connection pools that experience reduced usage are decreased in size. Managed connections may be recycled to fulfill connection requests. In another embodiment, managed connections may be monitored by an administrator. A user may monitor connections such as leaking connections and idle connections and delete connections as needed.
A connector architecture implementation is provided that is J2EE compliant and provides improved connection management capabilities. In one embodiment of the present invention, the connector architecture implementation provides a connector leak detection mechanism. The connector leak detector may detect connection leaks both automatically and manually. In another embodiment of the present invention, the connector architecture implementation is operable to pre-configure a connection pool and manage the growth and reduction of a connection pool. The connector architecture implementation may be pre-configured by pre-populating the connection pool. Connection pool growth may be managed by connections that are created in response to connection requests. A connection pool in the present invention may also be configured to reduce the number of connections in the pool. In one embodiment, the number of connections is reduced if the connection demand decreases. Password credentials allowing access to services are used to provide additional connection management.
A resource adapter is a system level software driver used by an application server to connect to an EIS. A resource adapter may serve as a connector. Resource adapters contain the Java and any native components required for the application server to interact with the EIS. In one embodiment, the connector architecture of the present invention supports resource adapters developed by EIS vendors and third party application developers that can be deployed in any application server supporting the J2EE platform specification. An EIS provides the information infrastructure for an enterprise and offers a set of services to its clients. The services may be exposed to clients as local or remote interfaces, or both. An application component may be an EJB, JSP, or servlet that is deployed, managed, or executed on an application server.
The connector architecture implementation 100 of
In connector systems, multiple applications may attempt to establish a connection with the EIS. One connection pool holds all available managed connections to this EIS. Sometimes, after connecting to and using the services of an EIS, connector applications may not close the connection object. A connection object that is not closed after the application has completed using the connection object is considered a leaking connection.
In one embodiment of the present invention, leak detection is performed automatically by leveraging the garbage collector.
In some instances, a leak detection system in addition to the automatic leak detection system is desirable. For example, the garbage collector may not call the finalize( ) method of the connection object used by the faulty application component. In this situation, additional leak detection methods would be useful for establishing increased connection management efficiency.
The connector architecture implementation of the present invention also provides for a manual leak detection mechanism. The manual leak detection mechanism may be advantageous in detecting leaks when the garbage collector is unreliable and in the case of multiple connection object references. A method 300 for manual leak detection performed within the connector architecture of the present invention is shown in
In addition to detecting connection leaks, the connector architecture implementation of the present invention may configure a connection pool for an EIS to aid in fulfilling connection requests. In one embodiment, the connection pool can be configured for pre-population. Pre-populating the connection pool with an initial number of managed connections is done upon startup of the application server and connector architecture implementation of the present invention. This pre-population prevents experiencing a decrease in performance when the managed connections are later created upon request.
A connection increment parameter is then configured in step 430. The connection increment parameter represents the number of managed connections that are created at the time a connection request is made. The connection increment parameter allows a user to control the connection pool growth and when to incur the performance and processing costs of connection pool growth. In one embodiment, the connection increment parameter is a capacity-increment element located in an XML formatted descriptor file of the connector architecture implementation of the present invention.
A connection request is then received in step 440. In one embodiment, a connection request may involve an application component requesting a connection object to an EIS through the resource adapter. Once a connection request is received, the connector architecture implementation determines whether the request may be fulfilled with existing available managed connections in step 450. If the connection request can be fulfilled, then operation continues to step 480. If the connection request can not be fulfilled with existing and available managed connections, the operation continues to step 460.
In step 460, it is determined whether creating a new managed connection will exceed a maximum allowed number of managed connections. In one embodiment, the maximum number of allowed connections is determined by a maximum-capacity element located in an XML formatted descriptor file of the connector architecture implementation of the present invention. The maximum number of managed connections may be configured for a single EIS. In one embodiment, more than one managed connection may be created when a connection request is received and no available managed connections exist. In particular, the number of managed connections created may correspond to the capacity-increment parameter. Thus, if the connection increment parameter has a value of three, then the connector architecture implementation will attempt to add three managed connections if a connection request can not be fulfilled by existing and available managed connections. In any case, if adding managed connections in the amount of the connection increment parameter does not bring the number of managed connections associated with an EIS over the maximum managed connections allowed for that EIS, then operation continues to step 465 where the new managed connections are created within the connection pool. If adding the new managed connections does bring the number of managed connections over the maximum allowed for an EIS, then operation continues to step 470.
The connection architecture implementation determines whether or not managed connections can be recycled in step 470. In one embodiment, recycling includes terminating connection objects that are determined to be inactive. The connector architecture implementation may determine a connection object is inactive according to the method 300 for manually detecting connection leaks as illustrated in
In addition to managing the growth of a connection pool, the connector architecture implementation of the present invention can manage the reduction of the connection pool. In one embodiment of the present invention, the connector architecture implementation may monitor the managed connection usage and reduce the size of the connection pool if the usage has decreased. A method 500 for reducing the number of managed connections in accordance with one embodiment of the present invention is illustrated in
The connector architecture implementation may also provide for monitoring of managed connections. In one embodiment of the present invention, a user may view and monitor managed connections. Types of managed connections to view and monitor may include leaked and idle connections. In one embodiment of the present invention, a connection-profiling-enabled element located in an XML formatted descriptor file of the connector architecture implementation indicates whether a connection pool should store the call stacks of where each connection is allocated. In one embodiment, if the connection-profiling-enabled element is configured to be true, the stacks for leaked, and idle connections can be viewed and a user may debug components that fail to close connection objects. A method 600 for monitoring of connections in accordance with one embodiment of the present invention is illustrated in
The connector architecture implementation provides security management. In one embodiment of the present invention, credentials are stored in a javax.securtiy.auth.Subject object to comply with Sun's J2EE Connector Specification, version 1.0 final release. A method 700 for storing credentials in accordance with one embodiment of the present invention is shown in
The connector architecture implementation of the present invention is provided that is J2EE compliant and provides improved connection management capabilities. In one embodiment of the present invention, the connector architecture implementation provides a connector leak detection mechanism. The connector leak detector may detect connection leaks both automatically and manually. In another embodiment of the present invention, the connector architecture implementation is operable to pre-configure a connection pool and manage the growth and reduction of a connection pool. The connector architecture may be pre-configured by pre-populating the connection pool. Connection pool growth may be managed by connections that are created in response to connection requests. A connection pool in the present invention may also be configured to reduce the number of connections in the pool. In one embodiment, the number of connections is reduced if the connection demand decreases. Password credentials allowing access to services are used to provide additional connection management.
In addition to an embodiment consisting of specifically designed integrated circuits or other electronics, the present invention may be conveniently implemented using a conventional general purpose or a specialized digital computer or microprocessor programmed according to the teachings of the present disclosure, as will be apparent to those skilled in the computer art.
Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art. The invention may also be implemented by the preparation of application specific integrated circuits or by interconnecting an appropriate network of conventional component circuits, as will be readily apparent to those skilled in the art.
The present invention includes a computer program product which is a storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Stored on any one of the computer readable medium (media), the present invention includes software for controlling both the hardware of the general purpose/specialized computer or microprocessor, and for enabling the computer or microprocessor to interact with a human user or other mechanism utilizing the results of the present invention. Such software may include, but is not limited to, device drivers, operating systems, and user applications. Ultimately, such computer readable media further includes software for performing the methods of the present invention.
Included in the programming (software) of the general/specialized computer or microprocessor are software modules for implementing the teachings of the present invention, including, but not limited to, a connector architecture implementation according to the processes of the present invention.
Other features, aspects and objects of the invention can be obtained from a review of the figures and the claims. It is to be understood that other embodiments of the invention can be developed and fall within the spirit and scope of the invention and claims.
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. Obviously, many modifications and variations will be apparent to the practitioner skilled 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.
The present application claims the benefit of priority under 35 U.S.C. §119(e) to U.S. Provisional Patent Application entitled “IMPROVED J2EE CONNECTOR ARCHITECTURE”, application Ser. No. 60/406,745, filed on Aug. 29, 2002, which application is incorporated herein by reference. The current application hereby incorporates by reference the material in the following patent applications: U.S. patent application Ser. No. 60/354,738, entitled “J2EE COMPONENT EXTENSION ARCHITECTURE,” filed Feb. 6, 2002; and U.S. patent application Ser. No. 60/397,916, entitled “SYSTEM AND METHOD FOR IMPLEMENTING J2EE CONNECTOR ARCHITECTURE,” filed Jul. 23, 2002.
Number | Name | Date | Kind |
---|---|---|---|
4714996 | Gladney | Dec 1987 | A |
5163148 | Walls | Nov 1992 | A |
5212793 | Donica et al. | May 1993 | A |
5249290 | Heizer | Sep 1993 | A |
5553242 | Russell et al. | Sep 1996 | A |
5586260 | Hu | Dec 1996 | A |
5613060 | Britton | Mar 1997 | A |
5682478 | Watson et al. | Oct 1997 | A |
5748975 | Van De Vanter | May 1998 | A |
5751967 | Raab et al. | May 1998 | A |
5761507 | Govett | Jun 1998 | A |
5765171 | Gehani | Jun 1998 | A |
5768504 | Kells et al. | Jun 1998 | A |
5774689 | Curtis et al. | Jun 1998 | A |
5799173 | Gossler et al. | Aug 1998 | A |
5802291 | Balick et al. | Sep 1998 | A |
5805798 | Kearns | Sep 1998 | A |
5819107 | Lichtman et al. | Oct 1998 | A |
5835769 | Jervis et al. | Nov 1998 | A |
5836014 | Faiman | Nov 1998 | A |
5894554 | Lowery et al. | Apr 1999 | A |
5909689 | Van Ryzin | Jun 1999 | A |
5910180 | Flory et al. | Jun 1999 | A |
5926775 | Brumley et al. | Jul 1999 | A |
5933838 | Lomet | Aug 1999 | A |
6018805 | Ma et al. | Jan 2000 | A |
6023722 | Colyer | Feb 2000 | A |
6044217 | Brealey et al. | Mar 2000 | A |
6055243 | Vincent et al. | Apr 2000 | A |
6105067 | Batra | Aug 2000 | A |
6122629 | Walker | Sep 2000 | A |
6134673 | Chrabaszcz | Oct 2000 | A |
6173327 | De Borst et al. | Jan 2001 | B1 |
6182109 | Sharma et al. | Jan 2001 | B1 |
6189046 | Moore et al. | Feb 2001 | B1 |
6212521 | Minami | Apr 2001 | B1 |
6212556 | Arunachalam | Apr 2001 | B1 |
6243753 | Machin et al. | Jun 2001 | B1 |
6269373 | Apte et al. | Jul 2001 | B1 |
6304879 | Sobeski | Oct 2001 | B1 |
6338089 | Quinlan | Jan 2002 | B1 |
6343287 | Kumar et al. | Jan 2002 | B1 |
6353923 | Bogle et al. | Mar 2002 | B1 |
6356931 | Ismael et al. | Mar 2002 | B2 |
6389462 | Cohen | May 2002 | B1 |
6411956 | Ng | Jun 2002 | B1 |
6425005 | Dugan | Jul 2002 | B1 |
6430564 | Judge | Aug 2002 | B1 |
6438705 | Chao et al. | Aug 2002 | B1 |
6453321 | Hill | Sep 2002 | B1 |
6453356 | Sheard et al. | Sep 2002 | B1 |
6463503 | Jones et al. | Oct 2002 | B1 |
6466972 | Paul et al. | Oct 2002 | B1 |
6505200 | Ims et al. | Jan 2003 | B1 |
6505241 | Pitts | Jan 2003 | B2 |
6523130 | Hickman et al. | Feb 2003 | B1 |
6539381 | Prasad et al. | Mar 2003 | B1 |
6542845 | Grucci et al. | Apr 2003 | B1 |
6567809 | Santosuosso | May 2003 | B2 |
6651140 | Kumar | Nov 2003 | B1 |
6687848 | Najmi | Feb 2004 | B1 |
6721777 | Sharma | Apr 2004 | B1 |
6732237 | Jacobs et al. | May 2004 | B1 |
6757708 | Craig et al. | Jun 2004 | B1 |
6766324 | Carlson | Jul 2004 | B2 |
6775703 | Burns | Aug 2004 | B1 |
6779017 | Lamberton | Aug 2004 | B1 |
6804686 | Stone et al. | Oct 2004 | B1 |
6826601 | Jacobs | Nov 2004 | B2 |
6832238 | Sharma | Dec 2004 | B1 |
6836889 | Chan | Dec 2004 | B1 |
6854120 | Lo | Feb 2005 | B1 |
6898587 | Messinger | May 2005 | B2 |
6944785 | Gadir et al. | Sep 2005 | B2 |
6963857 | Johnson | Nov 2005 | B1 |
6983465 | Mandal et al. | Jan 2006 | B2 |
7089584 | Sharma | Aug 2006 | B1 |
7100195 | Underwood | Aug 2006 | B1 |
7171692 | DeMello | Jan 2007 | B1 |
7203756 | Tapperson | Apr 2007 | B2 |
7240101 | Rich | Jul 2007 | B2 |
7454492 | Bauer et al. | Nov 2008 | B2 |
7484224 | Potter et al. | Jan 2009 | B2 |
7506342 | Mousseau et al. | Mar 2009 | B2 |
7546606 | Upton | Jun 2009 | B2 |
20010042073 | Saether et al. | Nov 2001 | A1 |
20020073188 | Rawson | Jun 2002 | A1 |
20020107934 | Lowery | Aug 2002 | A1 |
20020147961 | Charters | Oct 2002 | A1 |
20020161839 | Colasurdo | Oct 2002 | A1 |
20020161860 | Godlin et al. | Oct 2002 | A1 |
20020184444 | Shandony | Dec 2002 | A1 |
20020188591 | Santosuosso | Dec 2002 | A1 |
20030018732 | Jacobs | Jan 2003 | A1 |
20030037181 | Freed | Feb 2003 | A1 |
20030041135 | Keyes et al. | Feb 2003 | A1 |
20030060214 | Hendrey et al. | Mar 2003 | A1 |
20030065826 | Skufca | Apr 2003 | A1 |
20030105837 | Kamen | Jun 2003 | A1 |
20030110467 | Balakrishnan | Jun 2003 | A1 |
20030233433 | Halpern | Dec 2003 | A1 |
20030233631 | Curry et al. | Dec 2003 | A1 |
20030236923 | Jeyaraman | Dec 2003 | A1 |
20040059735 | Gold et al. | Mar 2004 | A1 |
20040068568 | Griffin et al. | Apr 2004 | A1 |
20040153558 | Gunduc et al. | Aug 2004 | A1 |
20040230747 | Ims et al. | Nov 2004 | A1 |
20060080435 | Tankov et al. | Apr 2006 | A1 |
20060168118 | Godlin et al. | Jul 2006 | A1 |
20060212453 | Eshel et al. | Sep 2006 | A1 |
20080270600 | Tankov et al. | Oct 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20040045008 A1 | Mar 2004 | US |
Number | Date | Country | |
---|---|---|---|
60406745 | Aug 2002 | US |