JCA 1.5, Part 1: Optimizing and life-cycle management
Class: Junior
David Currie (david_currie@uk.ibm.com), Staff Software Engineer, IBM UK Ltd.
April 21, 2005
The series is divided into three parts, the first part of the Java developer David Currie on the Java 2 Enterprise Edition (J2EE) Connector Architecture (JCA) 1.5 made some optimization, which can speed up existing or new external resource adapter operation speed. He also analyzed the number of adapter resources to revitalize the new features. To improve the performance of existing resources or adapters to add new functionality, or are considering the preparation of a new 1.5 JCA resource adapter, then this series is indispensable. To prepare the use of resources adapter applications, and would like to know more about the behind-the-scenes, then this series is worth reading.
JCA 1.5 of the J2EE Connector Architecture is the latest version, which contains a number of significant enhancements and new features. Discuss these changes in a three-part series of articles, the paper is the first part of the version will be presented by a number of optimization, which can speed up those who use the site resources adapter applications, in particular those using the application's Affairs speed. Then, the life-cycle management by the expansion of the lease, they can prevent the connection disconnected applications, and resource adapter glow freshmen. This will lay the foundation for the first part of 2,3. Part 2 of the discussion of new work flow management and services contract, Part 3 of the long-awaited contract news flow, more commonly referred to as the message-driven bean (MDB) support.
In this paper, the assumption that readers JCA connection management contract with a certain understanding. The original 1.0 specification in all the elements still applies, so if just contact JCA, the proposed first look at the entry Willy Farrell Guide (see references).
Figure 2-handle usage of the results.
a list of assumptions in the EJB, and containers hosted by the deployment of its affairs, business affairs method attribute set to RequiresNew. Calling this method when they start a new business. When connected to the creation, the Connection Manager do not know how to use it, so it must be linked to the Trusteeship Council was a XAResource connect, and the recruitment of its affairs. Link may only be used to query the database, or simply do not use. However, the Connection Manager recruitment must connect to prepare insert or update operation. This means that resources must be carried out at least adapter, or to roll back, and put an end to return to the back-end processes. Figure 4 show the affairs of this process.
3 on the list of amendments to the two interfaces learned this expansion.
JCA 1.5 support in its recruitment of inert also used WebSphere Application Server V5 delayed expansion of delayed recruitment services.
Please read in the developerWorks Kevin Kelle, who wrote the article for more expansion of the WebSphere (see references).
original English text.
David_currie@uk.ibm.com through contact with him.






