Embodiments of the invention generally relate to the field of client/server systems and, more particularly, to a system and method for resource adapter deployment.
In client-server operations, a server may provide connections between applications and various external resources. A communications process requires the provision of an interface between the application and the external resource. For example, a resource adapter may be utilized to couple the resource with the application.
In the operations of a server, communication needs are changed as applications are processed, with varying resources and thus varying resource adapters being needed at any given time. For this reason, the server may be required to deploy and terminate numerous different resource adapters to respond to system needs.
However, each instance of deploying or terminating a resource adapter requires processing time and effort. Further, the deployment of a resource adapter generally includes certain efforts to customize or configure the resource adapter for the current needs and certain efforts to communicate parameters to the agents involved. For this reason, any processes that can reduce the complications that are involved in resource adapter deployment or that can increase the usage of deployed resource adapters can assist in maximizing system performance.
A system and method for resource adapter deployment are described.
According to a first embodiment of the invention, a method includes storing deployment information regarding a resource adapter, with the deployment information including one or more elements for configuring the resource adapter; deploying the resource adapter, deploying the resource adapter including implementation of the elements to configure the resource adapter; and providing a connection using the resource adapter.
Under a second embodiment of the invention, a server includes an application, with the application to be connected with an external resource; a memory including a file, the file containing deployment information for a resource adapter to be used to connect the application and the external resource; and a resource system to provide the connection, with the resource adapter being configured based at least in part on the deployment information.
Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
Embodiments of the invention are generally directed to a system and method for resource adapter deployment.
Under an embodiment of the invention, a resource adapter is deployed using stored deployment information. In one embodiment, the deployment information is used at deploy time to establish the resource adapter. In one embodiment, the deployment information is used to customize or configure a resource adapter.
Under an embodiment of the invention, deployment information is stored in a format to allow simple processing at deploy time. In one embodiment, a document type definition (DTD) is used to create XML (extensible markup language) documents to be used in configuring a resource adapter for enterprise information system (EIS) connectivity at deploy time.
Under an embodiment of the invention, in addition to a standard descriptor, a DTD is used to create an additional deployment descriptor for a resource adapter. Under an embodiment of the invention, the deployment descriptor for a resource adapter contains customization settings, which are applied at deploy time for the resource adapter.
An embodiment of the invention may operate in a Java environment, such as described in the Java 2 enterprise edition (J2EE) environment provided under the J2EE specification, J2EE (Java 2 Platform, Enterprise Edition), including as provided in the J2EE specification, version 1.4, Nov. 24, 2003.
Under an embodiment of the invention, connections for a server are provided in conformity with the J2EE Connector Architecture Specification (JCA), including version 1.0 Aug. 22, 2001 and version 1.5, Nov. 24, 2003. The J2EE connector architecture provided by the JCA enables J2EE components to interact with enterprise information systems (EISs) and for the EISs to interact with J2EE components. A resource adapter is a component that implements the J2EE connector architecture for a specific EIS. A connector is a mechanism to provide connectivity to EISs, with a connector being specific to a particular EIS and consisting of the resource adapter and any application development tools for EIS connectivity. A resource adapter is generally stored in a resource adapter archive (RAR) file and can be deployed on any J2EE server to mediate communication between the server and the EIS via contracts. A RAR file is type of Java archive (JAR) file, with rar being the standard file extension for a RAR file.
Under an embodiment of the invention, directory and naming functionality includes that made pursuant to the Java Naming and Directory Interface (JNDI). A JNDI is described in the JNDI Application Programming Interface (API), including version 1.2, Jul. 14, 1999, and the JNDI Server Provider Interface (SPI), including version 1.3, Jul. 14, 1999.
Under an embodiment of the invention, a resource adapter is deployed via a RAR (Resource Adapter Archive) archive file. The RAR archive contains information regarding resource adapter deployment. In one embodiment of the invention, a RAR archive contains two XML files, which may, for example, be located under the standard META-INF directory. A first XML file is ra.xml, which is a file specified in the JCA specification. The second XML file is an additional deployment descriptor for the resource adapter, the additional descriptor being referred to herein as connector-j2ee-engine.
Under an embodiment of the invention, an additional deployment descriptor contains additional information regarding a resource adapter that is to be implemented when the resource adapter is deployed. In an embodiment, the component includes information about:
(1) The loader that will load the resource adapter. This may include:
(a) Loader name. The load name can be used in situations in which multiple applications will use the same resource adapter. In this case, it is not necessary to pack the same resource adapter in the archive of each application. Instead, it is possible to deploy the resource adapter and to specify a reference from the application loader to the loader of the resource adapter.
(b) Necessary references to other loaders.
(2) Connection pooling and expiration control. These properties are utilized to provide for increased performance of an EIS and assist in maintaining the connections to the EIS.
(3) User-store, authentication type, and user mapping for authorization for the EIS.
(4) The representation of the resource adapter in the JNDI, which determines access to the resource adapter. This representation may include:
(a) The JNDI name of the resource adapter.
(b) Aliases for the resource adapter, which may be used instead of the JNDI name. The aliases may be utilized when multiple applications use a single resource adapter. In this way, it is not necessary to deploy multiple resource adapters to the same EIS. Avoidance of multiple connection pooling may assist in preventing connection shortage for a server.
Under an embodiment of the invention, resource adapter properties are represented as an XML document. The representation of this information in XML form then allows the information to be packed in the RAR archive under the META-INF directory together with the ra.xml file, thereby allowing a simple deployment procedure for a resource adapter.
As shown in
Under an embodiment of the invention, a jndi-name element 504 defines the name used for binding the resource adapter in naming. This name is used when looking up the resource adapter and is used in connector-j2ee-engine 502. For example: <jndi-name>myAdapter</jndi-name>
Under an embodiment of the invention, an alias element 506 defines an alternative name for a resource adapter. Multiple such aliases may be used. Such element enables a user to utilize a resource adapter from multiple applications, with each application utilizing a different alias for the resource adapter. The element is used in connector-j2ee-engine 502. For example: <alias> myRA </alias>
Under an embodiment of the invention, an authentication-type element 508 defines the mode used for authenticating resources. In one embodiment, a user may choose from the following options:
The element is used in connector-j2ee-engine 502. For example: <authentication-type> Principal Mapping </authentication type>
Under an embodiment of the invention, a user-store element 510 defines a user-store configuration that is used by the resource adapter to store authentication information. The element is used in connector-j2ee-engine 502. For example: <user-store> CONNECTOR </user-store>
Under an embodiment of the invention, an identity-subject element 512 contains security information, which enables the authentication of a user (a principal) to the EIS resources. The element defines an identity subject with the specified mapping of caller and resource principal data. The element is used in connector-j2ee-engine 502. For example:
Under an embodiment of the invention, a caller-principal element 514 encapsulates information about the names of users or groups (or both) who are authorized to log on to the SAP J2EE Engine. This element is optional, and is used in identity-subject 512.
Under an embodiment of the invention, a resource-principal element 520 encapsulates authentication information about a user who is authorized to access a particular resource in an EIS. The information may include a username and a user password. This element is used in identity-subject 514.
Under an embodiment of the invention, a group-name element 516 defines the name of a group on the J2EE engine. This element is used in caller-principal 514.
Under an embodiment of the invention, a user-name element 518 defines a valid name, under which a user is authorized to log on to the server and access resources. This element is used in caller-principal 514 and resource-principal 520.
Under an embodiment of the invention, a user-password element 524 defines a valid password that is used to authenticate a user to the EIS. This element is used in resource-principal 520.
Under an embodiment of the invention, a driver element 526 defines a driver that can be used by a connector to obtain a connection to a relational database. The system registers that the specified driver has been deployed with the current application and loads the driver with the application loader. The information in this element may include the driver class name and the archive file name. This element is used in connector-j2ee-engine 502. For example:
Under an embodiment of the invention, a driver-name element 526 specifies an optional name for a JDBC driver. This element is used in driver 526.
Under an embodiment of the invention, a driver-class-name element 530 specifies the fully qualified Java name of the driver class. This element is used in driver 526.
Under an embodiment of the invention, a file-name element 532 defines the name of the driver archive file. This element is used in driver 526.
Under an embodiment of the invention, a pool-params element 534 contains properties of a connection pool. In the embodiment, this element is optional because a user may choose to use default properties for connection pooling. This element is used in connector-j2ee-engine 502.
Under an embodiment of the invention, a max-connections-number element 536 defines the maximum number of connections to the EIS that can be stored in the connection pool. This element is used in pool-params 534.
Under an embodiment of the invention, a max-time-to-wait-connection element 538 defines a timeout condition for a getconnection( ) request. For example, if no connection is available in the connection pool and the number of connections acquired from the EIS equals the maximum number of connections <“max-connections-number”>, and no free connection becomes available for the time period max-time-to-wait-connection seconds, then an exception will be thrown. Under an embodiment of the invention, the timeout condition may be disabled, such as by setting the timeout value to zero, “max-time-to-wait-connection”=0. This element is used in pool-params 534.
Under an embodiment of the invention, an expiration-control element is used to manage a connection pool. The element defines how long the connections may stay in the pool and how often the old connection objects are destroyed. This element is used in pool-params 534.
Under an embodiment of the invention, a connection-lifetime element 542 defines how long a connection may be kept in a connection pool. Once the period specified (such as in seconds) has expired, an old connection is removed from the pool to be replaced by a newer one. This element is used in expiration-control 540.
Under an embodiment of the invention, a run-cleanup-thread element 544 defines how often the system runs a thread, which will destroy all expired connection objects. In the embodiment, the interval may be specified in seconds. This element is used in expiration-control 540.
Under an embodiment of the invention, a connector-group element 546 defines the classloader for a standalone resource adapter. This element tag is ignored if the adapter is deployed within an application, rather than as a standalone component. If a user sets a connector group, the resource adapter is loaded by a classloader named connector: <connectorGroup>; otherwise, the classloader is connector:default. This element is used in connector-j2ee-engine 502.
Under an embodiment of the invention, a loader-references element 548 is used when a user deploys a standalone component. The element defines a reference to the classloader that is used to load the resource adapter. For non-standalone components (when the RAR file is deployed within a J2EE application that also contains other components), the loader reference is set to the application level and the resource adapter is loaded with the application loader, and this tag is ignored. This element is used in connector-j2ee-engine 502.
Under an embodiment of the invention, a loader-name element 550 specifies the name of the classloader that is used to load this resource adapter. This element is used in loader-references 548. For example: <loader-name> connector:myAdapter <loader-name>
Under an embodiment of the invention, a properties element 552 encapsulates a set of properties that can be used for additional customization after resource adapter deployment. This element is used in connector-j2ee-engine.
Under an embodiment of the invention, a property element 554 defines a particular property, together with its name and value. This element is used in properties 552.
Under an embodiment of the invention, a property-name element 556 defines the name of a particular additional property. This element is used in property 554.
Under an embodiment of the invention, a property-value element 558 defines the value of a particular additional property. This element is used in property 554.
The computer 605 further comprises a random access memory (RAM) or other dynamic storage as a main memory 625 to store information and instructions to be executed by the processors 615 through 620. The RAM or other main memory 625 also may be used for storing temporary variables or other intermediate information during execution of instructions by the processors 615 through 620.
A hard drive or other storage device 630 may be used by the computer 605 for storing information and instructions. Under an embodiment of the invention, a resource adapter archive file may be stored on the storage device 630. Under an embodiment of the invention, the resource adapter archive file may include deployment information for use in the deployment of a resource adapter. The storage device 630 may include a magnetic disk or optical disc and its corresponding drive, flash memory or other nonvolatile memory, or other memory device. Such elements may be combined together or may be separate components. The computer 605 may include a read only memory (ROM) 635 or other static storage device for storing static information and instructions for the processors 615 through 620.
A keyboard or other input device 640 may be coupled to the bus 610 for communicating information or command selections to the processors 615 through 620. The input device 640 may include a keyboard, a keypad, a touch-screen and stylus, a voice-activated system, or other input device, or combinations of such devices. The computer may further include a mouse or other cursor control device 645, which may be a mouse, a trackball, or cursor direction keys to communicate direction information and command selections to the processors and to control cursor movement on a display device. The computer 605 may include a computer display device 650, such as a cathode ray tube (CRT), liquid crystal display (LCD), or other display technology, to display information to a user. In some environments, the display device may be a touch-screen that is also utilized as at least a part of an input device. In some environments, the computer display device 650 may be or may include an auditory device, such as a speaker for providing auditory information.
A communication device 650 may also be coupled to the bus 610. The communication device 650 may include a modem, a transceiver, a wireless modem, or other interface device. The computer 605 may be linked to a network or to other device using via an interface 655, which may include links to the Internet, a local area network, or another environment. A computer 605 that comprises a server may connect to multiple client devices, to other servers, or to other types of devices via the interface 655. In one embodiment the computer 605 comprises a Java compatible server that is connected to user devices and to external resources.
It should be appreciated that reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Therefore, it is emphasized and should be appreciated that two or more references to “an embodiment” or “one embodiment” or “an alternative embodiment” in various portions of this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined as suitable in one or more embodiments of the invention.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Number | Name | Date | Kind |
---|---|---|---|
5613114 | Anderson et al. | Mar 1997 | A |
5790789 | Suarez | Aug 1998 | A |
6003061 | Jones et al. | Dec 1999 | A |
6125382 | Brobst et al. | Sep 2000 | A |
6233585 | Gupta et al. | May 2001 | B1 |
6260057 | Eykholt et al. | Jul 2001 | B1 |
6411983 | Gallop | Jun 2002 | B1 |
6519605 | Gilgen et al. | Feb 2003 | B1 |
6691304 | Zhang et al. | Feb 2004 | B1 |
6721777 | Sharma | Apr 2004 | B1 |
6766349 | Belkan | Jul 2004 | B1 |
6778990 | Garcia et al. | Aug 2004 | B2 |
6832238 | Sharma et al. | Dec 2004 | B1 |
6886041 | Messinger et al. | Apr 2005 | B2 |
6976061 | Sharma | Dec 2005 | B1 |
7007075 | Coffey | Feb 2006 | B1 |
7036110 | Jeyaraman | Apr 2006 | B2 |
7036124 | Patterson | Apr 2006 | B1 |
7058950 | Jeyaraman | Jun 2006 | B2 |
7080119 | Felt et al. | Jul 2006 | B2 |
7089317 | Jeyaraman et al. | Aug 2006 | B2 |
7089584 | Sharma | Aug 2006 | B1 |
7165249 | Potter et al. | Jan 2007 | B2 |
7260819 | Spotswood et al. | Aug 2007 | B2 |
7340714 | Upton | Mar 2008 | B2 |
20020046230 | Dieterich et al. | Apr 2002 | A1 |
20020144002 | Matena et al. | Oct 2002 | A1 |
20020156664 | Willcox et al. | Oct 2002 | A1 |
20020184401 | Kadel et al. | Dec 2002 | A1 |
20030074217 | Beisiegel et al. | Apr 2003 | A1 |
20030093402 | Upton et al. | May 2003 | A1 |
20030097574 | Upton | May 2003 | A1 |
20030105884 | Upton | Jun 2003 | A1 |
20030110315 | Upton | Jun 2003 | A1 |
20030145074 | Penick | Jul 2003 | A1 |
20030182426 | Hapner et al. | Sep 2003 | A1 |
20030182459 | Jeyaraman | Sep 2003 | A1 |
20030191803 | Chinnici et al. | Oct 2003 | A1 |
20030229888 | Spotswood et al. | Dec 2003 | A1 |
20030236923 | Jeyaraman et al. | Dec 2003 | A1 |
20040015859 | Potter et al. | Jan 2004 | A1 |
20040015974 | Jeyaraman | Jan 2004 | A1 |
20040034859 | Potter et al. | Feb 2004 | A1 |
20040078495 | Mousseau et al. | Apr 2004 | A1 |
20040098726 | Currie et al. | May 2004 | A1 |
20040109413 | Hierholzer et al. | Jun 2004 | A1 |
20040172639 | Luo et al. | Sep 2004 | A1 |
20040215473 | Bhogi et al. | Oct 2004 | A1 |
20040244004 | Pardon et al. | Dec 2004 | A1 |
20050028164 | Neuwald et al. | Feb 2005 | A1 |
20050060169 | Gangadharan et al. | Mar 2005 | A1 |
20050267918 | Gatev et al. | Dec 2005 | A1 |
20060041662 | Georgiev et al. | Feb 2006 | A1 |
20060075115 | Chitilian et al. | Apr 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060080435 A1 | Apr 2006 | US |