Oracle9iAS TopLink. 1 TopLink CMP for BEA WebLogic Server. 1.1 EJB 2.0 Support. CMP-Specific Release Notes

Similar documents
Oracle9iAS TopLink. CMP for Users of BEA WebLogic Server Guide. Release 2 (9.0.3) August 2002 Part No. B

TOPLink for WebLogic. Whitepaper. The Challenge: The Solution:

Oracle9iAS TopLink. CMP for Users of IBM WebSphere Server Guide. Release 2 (9.0.3) August 2002 Part No. B

NetBeans IDE Field Guide

Oracle TopLink. Developer s Guide, Volume 4 10g ( ) B September 2006 Understanding Non-Relational Mappings

Supports 1-1, 1-many, and many to many relationships between objects

WebSphere System Architect Code Packaging and Deployment

Understanding Impact of J2EE Applications On Relational Databases. Dennis Leung, VP Development Oracle9iAS TopLink Oracle Corporation

Implementing a Web Service p. 110 Implementing a Web Service Client p. 114 Summary p. 117 Introduction to Entity Beans p. 119 Persistence Concepts p.

SCBCD EXAM STUDY KIT. Paul Sanghera CX JAVA BUSINESS COMPONENT DEVELOPER CERTIFICATION FOR EJB MANNING. Covers all you need to pass

Building the Enterprise

BEA WebLogic Server. Programming WebLogic Enterprise JavaBeans

Java- EE Web Application Development with Enterprise JavaBeans and Web Services

BEA WebLogic. Server. Programming WebLogic Enterprise JavaBeans

Rational Application Developer 7 Bootcamp

IBM WebSphere Application Server V3.5, Advanced Edition Expands Platform Support and Leverages the Performance of the Java 2 Software Development Kit

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

JBuilder EJB. Development Using JBuilder 4 and Inprise Application Server 4.1. Audience. A Step-by-step Tutorial.

Developing Applications with Java EE 6 on WebLogic Server 12c

ITdumpsFree. Get free valid exam dumps and pass your exam test with confidence

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong

Using Caché Java with Third-party Persistence Frameworks

Transaction Commit Options

Writing Portable Applications for J2EE. Pete Heist Compoze Software, Inc.

IBM. Enterprise Application Development with IBM Web Sphere Studio, V5.0

Efficient Object-Relational Mapping for JAVA and J2EE Applications or the impact of J2EE on RDB. Marc Stampfli Oracle Software (Switzerland) Ltd.

Migration Technical Resources. Angelo Santagata EMEA Partner Technical Services Oracle Server Technologies

Deccansoft Software Services. J2EE Syllabus

Outline. Project Goal. Overview of J2EE. J2EE Architecture. J2EE Container. San H. Aung 26 September, 2003

Chapter 6 Enterprise Java Beans

SUN Enterprise Development with iplanet Application Server

Java Training For Six Weeks

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

In the most general sense, a server is a program that provides information

EclipseLink. Solutions Guide for EclipseLink Release 2.6. June Beta Draft

Installation Instructions for Release 5.2 of the SAS Performance Management Solutions

AIM Enterprise Platform Software IBM z/transaction Processing Facility Enterprise Edition 1.1.0

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

Techniques for Building J2EE Applications

Oracle Banking APIs. Part No. E Third Party Simulation Guide Release April 2018

"Charting the Course... Mastering EJB 3.0 Applications. Course Summary

IBM. Application Development with IBM Rational Application Developer for Web Sphere

Classloader J2EE rakendusserveris (Bea Weblogic Server, IBM WebSphere)

Arcot RiskFort Quick Installation Guide

The team that wrote this redbook

IBM Rational Application Developer for WebSphere Software, Version 7.0

Understanding the Versata Logic Server within the J2EE Framework. > A Technical Brief for Java Developers and Architects

Lightweight J2EE Framework

WebSphere Application Server, Version 5. What s New?

IBM WebSphere Application Server V3.5, Advanced Edition for Linux Extends Support to Red Hat, Caldera, SuSE, and TurboLinux

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

Hyperion System 9 Strategic Finance release

Java Programming Language

Java EE 6: Develop Business Components with JMS & EJBs

BEAWebLogic. Server. Programming WebLogic Deployment

Enterprise JavaBeans. Layer:01. Overview

Hibernate Overview. By Khader Shaik

ORACLE DATA SHEET KEY FEATURES AND BENEFITS ORACLE WEBLOGIC SUITE

TIBCO ActiveMatrix BusinessWorks Plug-in for EJB User's Guide

Arcot WebFort Quick Installation Guide

Vision of J2EE. Why J2EE? Need for. J2EE Suite. J2EE Based Distributed Application Architecture Overview. Umair Javed 1

Profitability Application Pack Installation Guide Release

Oracle Fusion Middleware

Java EE 7: Back-End Server Application Development

How-to Guide: The Migration Plug-in for SAP NetWeaver Composition Environment 7.1

JBuilder. JBuilder 6 features and benefits. Developer productivity Support for the latest Java standards

X100 ARCHITECTURE REFERENCES:

BEA WebLogic Server R EJB Enhancements

Appendix A - Glossary(of OO software term s)

Accessing EJBs from.net using Oracle WebLogic and JNBridgePro. Version 8.2

What is it? What does it do?

Practice Test. Oracle 1z Java Enterprise Edition 5 Business Component Developer Certified Professional Upgrade Exam. Version: 14.

Enterprise JavaBeans. Layer 05: Deployment

Oracle Fusion Middleware Understanding Oracle WebLogic Server. 12c ( )

Comparative Analysis of EJB3 and Spring Framework

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on WebLogic

Accessing EJBs from.net using GlassFish and JNBridgePro. Version 9.0

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

Table of Contents. I. Pre-Requisites A. Audience B. Pre-Requisites. II. Introduction A. The Problem B. Overview C. History

Red Hat Process Automation Manager 7.0 Planning a Red Hat Process Automation Manager installation

Introduction. Enterprise Java Instructor: Please introduce yourself Name Experience in Java Enterprise Edition Goals you hope to achieve

Adaptive Risk Manager Offline PoC Guide 10g ( ) December 2007

Hyperion System 9 BI+ Analytic Services

BEAAquaLogic. Service Bus. Interoperability With EJB Transport

EJB ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY. EJB Enterprise Java

presentation DAD Distributed Applications Development Cristian Toma

Oracle 10g: Build J2EE Applications

BEAWebLogic Server. Introduction to BEA WebLogic Server and BEA WebLogic Express

Java Enterprise Edition

WebSphere Process Server Business Process Choreographer Process Cleanup Service Sample V2 Enhanced business process instance deletion

Oracle Containers for J2EE

Oracle Application Development Framework

ECLIPSE PERSISTENCE PLATFORM (ECLIPSELINK) FAQ

Accessing EJBs from.net using IBM WebSphere and JNBridgePro. Version 9.0

Oracle Service Bus. Interoperability with EJB Transport 10g Release 3 (10.3) October 2008

IBM WebSphere Application Server V4.0. Performance. 10/02/01 Copyright 2001 IBM Corporation WS40ST11.prz Page 248 of of 28

Enterprise JavaBeans: BMP and CMP Entity Beans

Application Servers G Session 11 - Sub-Topic 2 Using Enterprise JavaBeans. Dr. Jean-Claude Franchitti

Borland Optimizeit Enterprise Suite 6

Transcription:

Oracle9iAS TopLink CMP-Specific Release Notes Release 2 (9.0.3) August 2002 Part No. B10161-01 These release notes include information on using Oracle9iAS TopLink Release 2 (9.0.3) with the following CMPs: TopLink CMP for BEA WebLogic Server TopLink CMP for IBM WebSphere Server Note: Effective with the release of Oracle9iAS TopLink Release 2 (9.0.3), Oracle9iAS TopLink no longer provides CMP support for the HP Application Server. 1 TopLink CMP for BEA WebLogic Server Oracle9iAS TopLink CMP for BEA WebLogic Server is compatible with BEA WebLogic Server 6.1 GA and above, and with BEA WebLogic Server 7.0 GA and above. Entity beans deployed with TopLink with BEA WebLogic Server adheres to either the EJB 1.1 or EJB 2.0 specification. 1.1 EJB 2.0 Support Oracle9iAS TopLink provides support for EJB 2.0 CMP entity beans. TopLink s implementation is based on the EJB 2.0 support provided in BEA WebLogic Server 6.1 and 7.0. Some specifics of EJB 2.0 that are supported are: Local interfaces Generation of the concrete subclass of your abstract bean. EJB-QL ejbselects ejbhome methods Copyright 2002 Oracle Corporation. All Rights Reserved. Oracle is a registered trademark, and Oracle9i is a trademark or registered trademark of Oracle Corporation. Other names may be trademarks of their respective owners.

Automatic management of bi-directional relationships Mapping Workbench support for EJB 2.0 Initializing project from ejb-jar.xml Support for finders 1.2 Installation Changes You need to set the value of JAVA_HOME in the <INSTALL_ DIR>\setenv.cmd file (for example, c:\jdk1.3.1). Ensure <INSTALL_DIR>\setenv.cmd has the correct values for the WLS61_HOME (for example, C:\bea\wlserver6.1), or WLS70_HOME (for example, C:\bea\weblogic700\server). If the application servers are installed on your machine before you install TopLink, they are automatically detected by the TopLink installer and the variables set correctly. The main structure now looks like: <ORACLE_HOME> toplink doc package_rename examples core lib toplink.jar wls_cmp persistence.install lib tl_wlsx.jar 1.3 Examples To familiarize yourself with the CMP functionality in TopLink CMP for BEA WebLogic Server, we recommend you explore the TopLink Examples. 1.4 Version Change for XML Deployment Descriptors When using BEA WebLogic Server 6.1, the <type-version> specified in the weblogic-ejb-jar.xml should be 4.0. The <type-identifier> should be TopLink_CMP_1_1 for EJB 1.1 entity beans and TopLink_CMP_ 2_0 for EJB 2.0 entity beans. <persistence-descriptor> <persistence-type> <type-identifier>toplink_cmp_2_0</type-identifier> 2

<type-version>4.0</type-version> <type-storage>meta-inf/toplink-ejb-jar.xml</type-storage> </persistence-type> <persistence-use> <type-identifier>toplink_cmp_2_0</type-identifier> <type-version>4.0</type-version> </persistence-use> </persistence-descriptor> When using BEA WebLogic Server 7.0, the <type-version> specified in the weblogic-ejb-jar.xml should be 4.5. The <type-identifier> should be TopLink_CMP_1_1 for EJB 1.1 entity beans and TopLink_CMP_ 2_0 for EJB 2.0 entity beans. <persistence-descriptor> <persistence-use> <type-identifier>toplink_cmp_2_0</type-identifier> <type-version>4.5</type-version> <type-storage>meta-inf/toplink-ejb-jar.xml</type-storage> </persistence-use> </persistence-descriptor> For more information on deployment, refer to the Oracle9iAS TopLink CMP for BEA WebLogic Server Guide. The weblogic-ejb-jar.xml file is used for both EJB 1.1 and EJB 2.0 beans. 1.5 Collection Set Methods 1.5.1 Dependent Object Collections Unlike Enterprise JavaBeans, TopLink dependent persistent objects can be sent back and forth between a client and the server. When these objects are serialized, they can cause the cache to lose the identity of the objects or attempt to cache duplicate identical objects. To avoid potential problems, you use the bean set methods when adding dependent objects to relationship collections. This enables TopLink to handle merging of objects in the cache. Example: Adding a dependent object addphonenumber(phonenumber phone) { Collection phones = this.getphonenumbers(); Vector newcollection = new Vector(); newcollection.addall(phones); newcollection.add(phone); this.setphones(newcollection); 3

1.6 JDK Support In Oracle9iAS TopLink Release 2 (9.0.3), only JDK 1.3.jars are provided since BEA WebLogic Server 6.1 runtime requires the use of JDK 1.3. However, the TopLink JAR files will work properly with JDK 1.2 should you choose to use that version for your development. 1.7 Known Limitations 1.7.1 Relationship Management We currently do not support automatic management of uni-directional relationships. 1.7.2 Limitations on Instantiation Policy Custom instantiation policies that provide custom methods for creating entities do not work with WebLogic 6.1 entities. This is due to the fact that WebLogic subclasses the bean class and uses this subclass for persistence purposes. The "class dictionary" method does work. 1.7.3 Proxy Indirection The Proxy Indirection feature (introduced in TopLink for Java 3.0 for JDK 1.3) can only be used on relationships between beans and dependent objects, and between regular Java objects. Proxy Indirection cannot be used to fault in entity beans. 1.7.4 Problems with ValueHolders ValueHolders, including those used through transparent indirection and proxy indirection, will not be valid when serialized to the client. It is important that ValueHolders be used on server-side components only (entity beans) or that they are instantiated before being serialized to the client. 1.7.5 Using TopLink for Java APIs Directly Access to lower-level TopLink for Java Foundation Library APIs are limited when using the TopLink CMP with BEA WebLogic Server. Direct manipulation of the TopLink Session, UnitOfWork, and other APIs is not encouraged when CMP is being used. Direct access to these APIs may compromise cache security and integrity, among other problems. Some TopLink Events cannot be used for database access when used within a JTS transaction. The JTS/JTA architecture does not permit database access during the commit process. Consequently, TopLink Events cannot be used to read or write during the commit. 4

1.7.6 Native Sequencing and Primary Key Allocation If native sequencing is used on a database that does not support pre-allocation, primary keys will not be populated until the end of the transaction. This means that the postcreate() method will not have a properly initialized primary key. This can cause problems if the create method is called within a long-running transaction. This is not an issue for applications that use table-based sequencing or for databases that support sequence pre-allocation. Sybase and SQL Server do not support sequence pre-allocation, whereas Oracle does. 2 TopLink CMP for IBM WebSphere Server Oracle9iAS TopLink CMP for IBM WebSphere Server is an extension of the TopLink for Java Foundation Library product and shares all of that product's core functionality. TopLink CMP for IBM WebSphere Server provides container-managed persistence (CMP) for Enterprise JavaBeans (EJBs) deployed in the IBM WebSphere Application Server Version 4.0. It also supports development with WebSphere Studio Application Developer. In addition, TopLink for WebSphere Server Foundation Library provides all of the object-relational persistence facilities, as documented in the Oracle9iAS TopLink Foundation Library Guide. TopLink CMP for IBM WebSphere Server's support allows you to have complex mappings from entity beans to relational database tables, and to model relationships between entity beans and between beans and regular Java objects. The TopLink for Java Foundation Library provides a rich set of querying options, and allows queries to be defined at the bean-level rather than at the database level. Oracle9iAS TopLink CMP for IBM WebSphere Server supports the EJB 1.1 specification as defined by Sun Microsystems. Knowledge of the EJB specification, WebSphere Application Server 4.0, and optionally IBM WebSphere Studio Application Developer 4.0 is assumed. 2.1 Installation Notes TopLink JARs must be placed in the WebSphere Applications Extensions (AEX) classpath and the server restarted. The jars to be copied to <WebSphere_Install>\lib\app are: <INSTALL_DIR>\core\lib\toplink.jar <INSTALL_DIR>\core\lib\antlr.jar <INSTALL_DIR>\core\lib\xerces.jar <INSTALL_DIR>\was_cmp\lib\tl_wasx.jar 5

<INSTALL_DIR>\hsql\lib\hsqldb.jar (required to run the examples only) <INSTALL_DIR>\hsql\lib\hsql_ds.jar (required to run the examples only) For more information, see the Oracle9iAS TopLink CMP for IBM WebSphere Server Guide. 2.2 Examples To familiarize yourself with the CMP functionality in TopLink CMP for IBM WebSphere Server, we recommend you explore the TopLink examples. The Single bean example is a simple example that demonstrates some of the setup issues such as setting up the toplink-ejb-jar.xml file, licensing, and CLASSPATH. 2.3 Known Limitations When installing a new version of an EJB module, the Application Server into which the EJB module is installed must be shutdown and restarted in order to clear the TopLink state associated with the previous version of the EJB module. OptimisticLockExceptions thrown by TopLink are masked by the server. Instead the client will receive a TransactionRolledbackException or a RollbackException depending on whether the transaction was begun manually or not. 6