Oracle® TopLink Examples


EJB 2.0 CMP - Enterprise Information System (EIS) Example

10g Release 3 (10.1.3)

January 2006

In this example, objects are mapped to Indexed records (the Attunity demonstrations map objects to XML records). When developing a project that makes use of EIS access through JCA to TopLink, bear in mind that while both TopLink runtime and TopLink Workbench support mapping objects to XML records, only TopLink runtime supports mapping objects to Indexed records and Mapped records.

TopLink Workbench does not currently support mapping objects to Indexed records and Mapped records.

The example demonstrates how to:

Configuration Requirements

Before you build and run the example, you must:

Building and Running the Example

Use the following commands to build the example, reset the database, start the server and run the example:


Note:

If the CMP example was deployed previously, and the server is restarted after defining a non-Oracle data source (when there is no data source defined that references an Oracle driver), the Sun Blackbox JCA Adapter throws the following SQL exception: Exception Description: SQLException: No suitable driver. To avoid this, add the following to the beginning of the applyLogin method the AccountProject.java file:
public void applyLogin() {
     try {
           Class.forName
("oracle.jdbc.driver.OracleDriver");
     } catch(Exception e) {}
     ...
}

Example Files and Directories

Table: Files and Directories Used in this Example lists the supporting directories (and their contents) provided in this example.

Files and Directories Used in this Example

Directory Contents

config

This directory contains configuration files used by both TopLink and OC4J.

There are no TopLink-specific files. All files are J2EE or application server-specific files. All TopLink-specific mappings and metadata are created in Java source files in the src directory.

jsp

This directory contains the Java Server Page (JSP) files used in this example.

mw

This directory contains the TopLink Workbench project and supporting files for this example.

src

This directory contains all the supporting *.java source files for the example. The *.java files are stored in their respective package hierarchy.



Oracle TopLink Examples, 10g Release 3 (10.1.3)

The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.

The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose.

If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software—Restricted Rights (June 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065

The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs.

Oracle, JD Edwards and PeopleSoft are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all risks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.