Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10
g
(10.1.3.1.0)
Part Number B28221-02
Home
Book List
Contents
Index
Contact Us
Previous
Next
View PDF
List of Examples
1-1 Using Annotations and Resource Injection
1-2 Equivalent ejb-jar.xml File Configuration
1-3 Specifying Predefined TopLink Finders
1-4 Specifying Default TopLink Finders
2-1 application.xml
2-2 Managed Data Source
2-3 Native Data Source
2-4 OC4J Service-Based Connection URL
2-5 Non-Oracle Connection URL
2-6 @MessageDriven and @MessageDrivenDeployment Annotation for a J2CA Message Service Provider
2-7 ejb-jar.xml <activation-config-property>
2-8 orion-ejb-jar.xml <config-property>
5-1 Configuring Passivation Criteria Using @StatefulDeployment
5-2 Configuring Passivation Location Using @StatefulDeployment
5-3 @PostConstruct
5-4 Interceptor Class
5-5 @AroundInvoke in an EJB 3.0 Session Bean
5-6 Interceptor Class
5-7 Interceptor Class
5-8 Associating an Interceptor Class With an EJB 3.0 Session Bean
5-9 Specifying a Singleton Interceptor Class with an EJB 3.0 Stateful Session Bean
5-10 @StatelessDeployment
5-11 @StatefulDeployment
5-12 orion-ejb-jar.xml File <session-deployment> Element
7-1 Primary Key Using @Id
7-2 Embeddable Composite Primary Key Class
7-3 JPA Entity With an Embedded Composite Primary Key Class
7-4 Non-Embedded Composite Primary Key Class
7-5 JPA Entity With a Mapped Composite Primary Key Class
7-6 GeneratedValue Strategy Table: @TableGenerator
7-7 GeneratedValue Strategy Sequence: @SequenceGenerator
7-8 @GeneratedValue Strategy Identity
7-9 @Table
7-10 @SecondaryTable
7-11 @Column for the Primary Table
7-12 @Column for a Secondary Table
7-13 @JoinColumn With a Secondary Table
7-14 @JoinColumn With an One-to-One Mapping
7-15 @JoinColumn With a Many-to-One Mapping
7-16 @JoinColumn With an One-to-Many Mapping
7-17 @Basic
7-18 @Lob
7-19 @Serialized
7-20 @OneToOne
7-21 @ManyToOne
7-22 @OneToMany
7-23 @ManyToMany
7-24 @Embedded
7-25 @Embeddable
7-26 @Embedded and @AttributeOverride
7-27 @Embeddable and @Column
7-28 @Version
7-29 @Basic Fetch Attribute
7-30 @PrePersist
7-31 @PrePersist Life Cycle Listener Callback Method
7-32 Associating an Entity Listener Class With a JPA Entity
7-33 @Inheritance: Base Class Project in Joined Subclass Inheritance
7-34 @Inheritance: Derived Class LargeProject in Joined Subclass Inheritance
7-35 @Inheritance: Derived Class SmallProject in Joined Subclass Inheritance
7-36 @Inheritance: Base Class Project in Single Table Inheritance
7-37 @Inheritance: Derived Class LargeProject in Single Table Inheritance
7-38 @Inheritance: Derived Class SmallProject in Single Table Inheritance
8-1 Implementing a Query Using @NamedQuery
8-2 Implementing a Query With Parameters Using @NamedQuery
8-3 Setting Parameters in a Named Query
8-4 Implementing and Executing a Dynamic Query
8-5 Specifying a TopLink JPA Query Hint
8-6 Specifying a TopLink JPA Query Hint With @QueryHint
10-1 @MessageDriven and @MessageDrivenDeployment Annotation for a J2CA Message Service Provider
10-2 @MessageDriven Annotation for a Non-J2CA Message Service Provider
10-3 Configuring Parallel Message Processing for a J2CA Adapter Message Service Provider
10-4 Configuring Parallel Message Processing for a Non-J2CA Adapter Message Service Provider
10-5 Configuring Maximum Delivery Count for a J2CA Adapter Message Service Provider
10-6 Configuring Maximum Delivery Count for a Non-J2CA Adapter Message Service Provider
10-7 Configuring Connection Failure Recovery for a J2CA Adapter Message Service Provider
10-8 Configuring Connection Failure Recovery for a Non-J2CA Adapter Message Service Provider
10-9 @PostConstruct in an EJB 3.0 Message-Driven Bean
10-10 Interceptor Class
10-11 @AroundInvoke in an EJB 3.0 Message-Driven Bean
10-12 Interceptor Class
10-13 Interceptor Class
10-14 Associating an Interceptor Class With an EJB 3.0 MDB
10-15 Specifying a Singleton Interceptor Class With an EJB 3.0 MDB
10-16 @MessageDrivenDeployment
10-17 orion-ejb-jar.xml File <message-driven-deployment> Element
11-1 EJB 2.1 Stateless Session Bean Implementation
11-2 ejb-jar.xml For a Stateless Session Bean
11-3 EJB 2.1 Stateful Session Bean Implementation
11-4 ejb-jar.xml For a Stateful Session Bean
11-5 Remote Home Interface for a Stateless Session Bean
11-6 Remote Home Interface for a Stateful Session Bean
11-7 Local Home Interface for a Stateless Session Bean
11-8 Local Home Interface for a Stateful Session Bean
11-9 Remote Component Interface for EJB 2.1 Session Bean
11-10 Local Component Interface for EJB 2.1 Session Bean
11-11 Implementing the setSessionContext Method
12-1 EJB 2.1 Session Bean Callback Method Implementation
13-1 Implementation of an EJB 2.1 Entity Bean With Container-Managed Persistence
13-2 EJB 2.1 CMP Remote Home Interface
13-3 EJB 2.1 CMP Remote Component Interface
13-4 ejb-jar.xml For an EJB 2.1 Entity Bean With Container-Managed Persistence
13-5 Implementation of an EJB 2.1 Entity Bean With Bean-Managed Persistence
13-6 EJB 2.1 BMP Remote Home Interface
13-7 EJB 2.1 BMP Remote Component Interface
13-8 ejb-jar.xml For an EJB 2.1 Entity Bean With Bean-Managed Persistence
13-9 data-sources.xml For an EJB 2.1 Entity Bean With Bean-Managed Persistence Data Source
13-10 Implementing the setEntityContext and unsetEntityContext Methods
14-1 ejb-jar.xml for Primary Key Field With Type Integer for EJB 2.1 Entity Bean With Container-Managed Persistence
14-2 Primary Key Class Implementation for an EJB 2.1 Entity Bean With Container-Managed Persistence
14-3 ejb-jar.xml for Primary Key Class and Its Instance Variables for an EJB 2.1 Entity Bean With Container-Managed Persistence
14-4 EJB 2.1 Container-Managed Persistent Fields
14-5 ejb-jar.xml for an EJB 2.1 Container-Managed Persistent Field
14-6 EJB 2.1 Container-Managed Relationship Fields
14-7 ejb-jar.xml for an EJB 2.1 Container-Managed Relationship Field
14-8 ejb-jar.xml for an EJB 2.1 Unidirectional One-to-One Relationship
14-9 ejb-jar.xml for an EJB 2.1 Bidirectional One-to-Many Relationship
14-10 ejb-jar.xml for an EJB 2.1 Bidirectional Many-to-One Relationship
14-11 ejb-jar.xml for an EJB 2.1 Many-to-Many Relationship
14-12 EJB 2.1 Entity Bean Life Cycle Callback Method Implementation
15-1 ejb-jar.xml for Primary Key Field With Type Integer of EJB 2.1 Entity Bean With Bean-Managed Persistence
15-2 Primary Key Class Implementation for a EJB 2.1 Entity Bean With Bean-Managed Persistence
15-3 ejb-jar.xml for Primary Key Class and Its Instance Variables of EJB 2.1 Entity Bean With Bean-Managed Persistence
15-4 orion-ejb-jar.xml For Read-Only
15-5 orion-ejb-jar.xml For Commit Options
15-6 EJB 2.1 Entity Bean Life Cycle Callback Method Implementation
16-1 Finder Methods in an EJB 2.1 Entity Bean With Container-Managed Persistence Remote Home Interface
16-2 ejb-jar.xml For EJB 2.1 EJB QL Finders
16-3 Implementation of an EJB 2.1 Entity Bean With Container-Managed Persistence With Select Methods
16-4 ejb-jar.xml For EJB 2.1 EJB QL Select Methods
16-5 Using the EJB 2.1 EJB QL Extension for SQRT
16-6 Using the EJB 2.1 EJB QL Extension for java.util.Date
16-7 Using the EJB 2.1 EJB QL Extension for java.sql.Date
16-8 Using the EJB 2.1 EJB QL Extension for java.sql.Time
16-9 Using the EJB 2.1 EJB QL Extension for java.sql.Timestamp
17-1 EJB 2.1 MDB Implementation
17-2 ejb-jar.xml For an EJB 2.1 MDB
17-3 ejb-jar.xml For an EJB 2.1 MDB for a Durable Topic
17-4 Implementing the setMessageDrivenContext Methods
18-1 orion-ejb-jar.xml for a J2CA Message Service Provider
18-2 ejb-jar.xml for a J2CA Message Service Provider
18-3 ejb-jar.xml for a Non-J2CA Message Service Provider
18-4 orion-ejb-jar.xml For Oracle RAC Failover with an MDB
18-5 Client Retrying After Connection Acquisition Failure
18-6 Configuring EndpointFailureRetryInterval in orion-ejb-jar.xml
18-7 EJB 2.1 MDB Life Cycle Callback Method Implementation
19-1 Configuring ejb-ref-name
19-2 Configuring ejb-ref-name with a Logical Name Resolved by ejb-link
19-3 Configuring ejb-ref-name With a Logical Name Resolved by ejb-ref-mapping
19-4 Mapping Logical Name to Actual Name With ejb-ref-mapping
19-5 Configuring ejb-ref-name With a Logical Name Resolved by ejb-ref-mapping
19-6 Mapping Logical Name to Actual Name With ejb-ref-mapping for a Remote Target EJB
19-7 Configuring ejb-local-ref-name
19-8 Configuring ejb-ref-name with a Logical Name Resolved by ejb-link
19-9 Configuring ejb-ref-name With a Logical Name Resolved by ejb-ref-mapping
19-10 Mapping Logical Name to Actual Name With ejb-ref-mapping
19-11 Configuring <resource-ref> in ejb-jar.xml
19-12 Mapping Logical to Actual JDBC Data Source Resource Manager Connection Factory Using <resource-ref-mapping>
19-13 <resource-env-ref> for a JMS Topic Destination
19-14 <resource-ref> for a JMS Topic Connection Factory
19-15 OEMS JMS <resource-env-ref-mapping>
19-16 OEMS JMS <resource-ref-mapping>
19-17 ejb-jar.xml For Environment Variables
19-18 ejb-jar.xml For a Web Service Logical Name
19-19 orion-ejb-jar.xml For a Web Service Logical to JNDI Mapping
19-20 web.xml For a Persistence Context
19-21 Configuring the Default Initial Context
19-22 Specifying Initial Context Factory Properties
19-23 Instantiate the Initial Context Looking Up a JNDI-Accessible Resource
19-24 Injecting an EJB 3.0 Resource Manager Connection Factory
19-25 Looking Up an EJB 3.0 Resource Manager Connection Factory
19-26 Resource Injection at Field Level with Default Environment Variable Name
19-27 Resource Injection at the Property Level with a Default Environment Variable Name
19-28 Resource Injection with a Specific Environment Variable Name
19-29 Looking Up Environment Variables
19-30 Looking Up a JDBC Data Source Resource Manager Connection Factory
19-31 Looking Up Environment Variables
20-1 data-sources.xml For an Oracle JDBC Data Source
20-2 data-sources.xml for a Third-Party Database
20-3 Defining a Shared Library for Oracle JDBC Driver Version 10.3 in server.xml
20-4 Defining a Corresponding oracle.toplink Shared Library for Oracle JDBC Driver Version 10.3 in server.xml
20-5 Importing the Shared Libraries for all Applications in system-applications.xml
20-6 Importing the Shared Libraries for a Specific Application in orion-applications.xml
20-7 Defining a Shared Library for Oracle JDBC Driver Version 10.3 in boot.xml
20-8 Importing the New Shared Library in oracle.toplink in boot.xml
20-9 Importing the New Shared Library in the main-class-loader in boot.xml
20-10 Importing the Shared Libraries for all Applications in system-applications.xml
20-11 Importing the Shared Libraries for a Specific Application in orion-applications.xml
20-12 Defining a Shared Library for Oracle JDBC Driver Version 10.3 in server.xml
21-1 Configuring Transaction Management for an EJB 3.0 Session Bean
21-2 Configuring Transaction Attribute for an EJB 3.0 Session Bean
21-3 Configuring Transaction Management for an EJB 2.1 Session Bean
21-4 Configuring Transaction Attribute for an EJB 2.1 Session Bean
21-5 @StatelessDeployment transactionTimeout Attribute
21-6 @MessageDrivenDeployment
21-7 Incorrect: count Number of Connections Held Until Commit
21-8 Correct: Only One Connection Held Until Commit
22-1 @RolesAllowed
22-2 @PermitAll
22-3 @RunAs
22-4 Mapping Logical Role to Actual Role
22-5 Specifying Credentials in JNDI Properties
22-6 Looking Up a JNDI-Accessible Resource
22-7 Specifying Credentials in the Initial Context
22-8 Looking Up a JNDI-Accessible Resource
22-9 @RolesAllowed
22-10 Using JAAS API to Retrieve Credentials
23-1 jms.xml For an EJB 2.1 MDB using OEMS JMS Factories
23-2 jms.xml For an EJB 2.1 MDB using OEMS JMS XA Factories
23-3 Emulated Data Source With Thin JDBC Driver
24-1 The orion-ejb-jar.xml For an Application-Level Replication Policy for EJB
24-2 JNDI Properties for Static Retrieval Load Balancing
24-3 JNDI Properties for DNS Load Balancing
25-1 Configuring a Java EE Timer on an EJB 3.0 Stateless Session Bean
25-2 Configuring a Java EE Timer on an EJB 2.1 Stateless Session Bean
25-3 How to Configure Different Cron Timers
25-4 Complex Cron Timers
25-5 Configuring an OC4J Cron Timer on an EJB 3.0 Stateless Session Bean
25-6 Configuring an OC4J Cron Timer on an EJB 2.1 Stateless Session Bean
26-1 Named Persistence Unit
26-2 Configuring a Vendor Extension in the Persistence.xml File (Java EE)
26-3 Configuring a Vendor Extension in the Persistence.xml File (Java SE)
26-4 Configuring a Vendor Extension When Creating an EntityManagerFactory
27-1 Persistence Archive
28-1 Disabling Batch Compilation in the orion-application.xml File
28-2 Incremental Deployment Using the admin.jar
28-3 server.xml for Expanded Deployment
29-1 Looking Up an Enterprise Bean With the Prefix
29-2 Looking Up an Enterprise Bean Without the Prefix
29-3 Injecting an EJB 3.0 Enterprise Bean in an EJB 3.0 EJB Client
29-4 ejb-jar.xml For an ejb-ref Element
29-5 Looking Up Using ejb-ref in an EJB 3.0 EJB Client Using Initial Context
29-6 orion-ejb-jar.xml for location Attribute
29-7 Looking Up Using location in an EJB 3.0 EJB Client Using Initial Context
29-8 ejb-jar.xml For an ejb-local-ref Element
29-9 Looking Up Using local-ref in an EJB 3.0 EJB Client Using Initial Context
29-10 orion-ejb-jar.xml for local-location Attribute
29-11 Looking Up Using local-location in an EJB 3.0 EJB Client Using Initial Context
29-12 Using @PersistenceContext With the OC4J Default Persistence Unit
29-13 Using @PersistenceContext With a Named Persistence Unit
29-14 Using InitialContext to Lookup an EntityManager in a Stateless Session Bean
29-15 Using @PersistenceContext to Inject an EntityManager in a Servlet
29-16 Creating an Entity With the EntityManager
29-17 Finding an Entity by Primary Key Using the EntityManager
29-18 Creating a Named Query with the EntityManager
29-19 Creating a Dynamic Query Using the EntityManager
29-20 Creating a Dynamic Java Persistence Query Language Query with Parameters Using the EntityManager
29-21 Creating a Dynamic TopLink Expression Query Using the Entity Manager
29-22 Creating a Dynamic Native SQL Query with the EntityManager
29-23 Creating a Dynamic Native SQL Query with Parameters Using the EntityManager
29-24 Executing a Query that Returns Multiple Results
29-25 Executing a Query that Returns a Single Result
29-26 Executing an Updating Query
29-27 Refreshing an Entity from the Database
29-28 Removing an Entity
29-29 Sending Updates to the Database Within a Transaction
29-30 Merging an Entity into the Persistence Context of an EntityManager
29-31 Servlet Client Sends Message to a Queue
29-32 Accessing EJBContext Using @Resource
29-33 Accessing an EJB 2.1 Enterprise Bean Using RMI from a Standalone Java Client
29-34 Creating an Environment Reference to an EJB 2.1 Enterprise Bean's Home and Remote Interface
29-35 Injecting an EJB 2.1 Home Interface Using @EJB
29-36 Adding an <injection-target> to the Deployment XML
29-37 Injecting an EJB 2.1 Home Interface Into an Instance Variable Using
29-38 Performing a JNDI Lookup of the Home Interface
29-39 Servlet Client Sends Message to a Queue
30-1 Annotated Web Service Endpoint Interface
30-2 Implementing the Web Service as a Stateless Session Bean
30-3 Annotating a Web Service
30-4 Calling Out to a Web Service Obtained by Resource Injection
30-5 Calling Out to a Web Service Obtained from the Initial Context
31-1 j2ee-logging.xml File
31-2 Configuring a Logger with a System Property
31-3 @StatelessDeployment poolCacheTimeout Attribute
31-4 orion-ejb-jar.xml for Bean Instance Pool Size for a Stateless Session Bean
31-5 @StatelessDeployment poolCacheTimeout Attribute
31-6 @StatefulDeployment timeout Attribute
31-7 Setting -validateXML in oc4j.cmd
31-8 Setting KeepWrapperCode in oc4j.cmd
31-9 Setting KeepWrapperCode and WrapperCodeDir in oc4j.cmd
31-10 Setting KeepWrapperCode and DoNotReGenerateWrapperCode in oc4j.cmd