Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10
g
Release 3 (10.1.3)
B14428-02
Home
Solution Area
Contents
Index
Previous
Next
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 ejb-jar.xml Deployment Descriptor for Hello Bean Application
2-2 application.xml Deployment Descriptor for Hello Bean
2-3 application.xml
2-4 A Managed Data Source
2-5 A Native Data Source
2-6 OC4J Service-Based Connection URL
2-7 Non-Oracle Connection URL
5-1 @PostConstruct
5-2 @AroundInvoke in an EJB 3.0 Session Bean
7-1 @Id
7-2 @GeneratedIdTable
7-3 @TableGenerator
7-4 @SequenceGenerator
7-5 @Table
7-6 @SecondaryTable
7-7 @Column for the Primary Table
7-8 @Column for a Secondary Table
7-9 @JoinColumn with a Secondary Table
7-10 @JoinColumn with a One-to-One Mapping
7-11 @JoinColumn with a Many-to-One Mapping
7-12 @JoinColumn with a One-to-Many Mapping
7-13 @Basic
7-14 @Lob
7-15 @Serialized
7-16 @OneToOne
7-17 @ManyToOne
7-18 @OneToMany
7-19 @ManyToMany
7-20 @Embedded
7-21 @Embeddable
7-22 @Embedded and @AttributeOverride
7-23 @Embeddable and @Column
7-24 @Version
7-25 @PrePersist
7-26 @Inheritance: Base Class Project in Joined Subclass Inheritance
7-27 @Inheritance: Derived Class LargeProject in Joined Subclass Inheritance
7-28 @Inheritance: Derived Class SmallProject in Joined Subclass Inheritance
7-29 @Inheritance: Base Class Project in Single Table Inheritance
7-30 @Inheritance: Derived Class LargeProject in Single Table Inheritance
7-31 @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
10-1 @MessageDriven Annotation for a Non-J2CA Message Service Provider
10-2 @MessageDriven and @MessageDrivenDeployment Annotation for a J2CA Message Service Provider
10-3 @AroundInvoke in an EJB 3.0 Message-Driven Bean
10-4 @PostConstruct in an EJB 3.0 Message-Driven Bean
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 EJB 2.1 CMP Entity Bean Implementation
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 CMP Entity Bean
13-5 EJB 2.1 BMP Entity Bean Implementation
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 BMP Entity Bean
13-9 data-sources.xml For an EJB 2.1 BMP Entity Bean Data Source
13-10 Implementing the setEntityContext and unsetEntityContext Methods
14-1 ejb-jar.xml for Primary Key Field with Type Integer
14-2 orion-ejb-jar.xml for Primary Key Field
14-3 EJB 2.1 CMP Entity Bean Primary Key Class Implementation
14-4 ejb-jar.xml For a Primary Key Class and Its Instance Variables
14-5 orion-ejb-jar.xml for Primary Key Field
14-6 ejb-jar.xml for Primary Key Field with Type Object
14-7 orion-ejb-jar.xml for Automatically Generated Primary Key Field
14-8 EJB 2.1 Container-Managed Persistence Fields
14-9 ejb-jar.xml for an EJB 2.1 CMP Field
14-10 EJB 2.1 Container-Managed Relationship Fields
14-11 ejb-jar.xml for an EJB 2.1 CMR Field
15-1 orion-ejb-jar.xml For Read-Only
15-2 orion-ejb-jar.xml For Commit Options
16-1 Finder Methods in an EJB 2.1 CMP Entity Bean Remote Home Interface
16-2 ejb-jar.xml For EJB 2.1 EJB QL Finders
16-3 EJB 2.1 CMP Entity Bean Implementation 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 ejb-jar.xml for a Non-J2CA Message Service Provider
18-2 ejb-jar.xml for a J2CA Message Service Provider
18-3 orion-ejb-jar.xml for a 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
19-1 Configuring ejb-ref-name with a Logical Name Resolved by ejb-link
19-2 Configuring ejb-ref-name with a Logical Name Resolved by ejb-ref-mapping
19-3 Mapping Logical Name to Actual Name with ejb-ref-mapping
19-4 Configuring ejb-ref-name with a Logical Name Resolved by ejb-link
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
19-7 <resource-env-ref> for a JMS Topic Destination
19-8 <resource-ref> for a JMS Topic Connection Factory
19-9 OracleAS JMS <resource-env-ref-mapping>
19-10 OracleAS JMS <resource-ref-mapping>
19-11 Defining an environment element for Java mail Session
19-12 Defining an Environment Element for a URL
19-13 ejb-jar.xml For Environment Variables
19-14 ejb-jar.xml For a Web Service Logical Name
19-15 orion-ejb-jar.xml For a Web Service Logical to JNDI Mapping
19-16 web.xml For a Persistence Context
19-17 Configuring the Default Initial Context
19-18 Specifying Initial Context Factory Properties
19-19 Instantiate the Initial Context Looking Up a JNDI-Accessible Resource
19-20 Injecting an EJB 3.0 EJB in an EJB 3.0 EJB Client
19-21 Injecting an EJB 2.1 EJB in an EJB 3.0 EJB Client
19-22 ejb-jar.xml For an ejb-ref
19-23 Looking Up Using ejb-ref in an EJB 3.0 EJB Client Using Initial Context
19-24 orion-ejb-jar.xml For location
19-25 Looking Up Using location in an EJB 3.0 EJB Client Using Initial Context
19-26 ejb-jar.xml For an ejb-local-ref
19-27 Looking Up Using local-ref in an EJB 3.0 EJB Client Using Initial Context
19-28 orion-ejb-jar.xml For local-location
19-29 Looking Up Using local-location in an EJB 3.0 EJB Client Using Initial Context
19-30 Injecting an EJB 3.0 Resource Manager Connection Factory
19-31 Looking Up an EJB 3.0 Resource Manager Connection Factory
19-32 Resource Injection at Field Level with Default Environment Variable Name
19-33 Resource Injection at the Property Level with a Default Environment Variable Name
19-34 Resource Injection with a Specific Environment Variable Name
19-35 Looking Up Environment Variables
19-36 ejb-jar.xml For an ejb-ref
19-37 Looking Up Using ejb-ref
19-38 orion-ejb-jar.xml For location
19-39 Looking Up Using location
19-40 ejb-jar.xml For an ejb-local-ref
19-41 Looking Up
19-42 orion-ejb-jar.xml For local-location
19-43 Looking Up Using local-location
19-44 Looking Up a JDBC Data Source Resource Manager Connection Factory
19-45 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
21-1 Incorrect: count Number of Connections Held Until Commit
21-2 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 OracleAS JMS
23-2 Emulated Data Source With Thin JDBC Driver
24-1 The application.xml For a Global Replication Policy
24-2 The orion-application.xml For an Application-Level Replication Policy
24-3 The orion-ejb-jar.xml For an Application-Level Replication Policy for EJBs
24-4 JNDI Properties for Static Retrieval Load Balancing
24-5 JNDI Properties for DNS Load Balancing
25-1 Using @Resource to Acquire a J2EE Timer in an EJB 3.0 EJB
25-2 Using Initial Context to Look Up an EJB 3.0 J2EE Timer
25-3 How to Configure Different Timers
25-4 Complex Timers
26-1 Named Persistence Unit
28-1 Disabling Batch Compilation in the orion-application.xml File
28-2 Incremental Deployment Using the admin.jar
29-1 Looking Up an EJB with the Prefix
29-2 Looking Up an EJB without the Prefix
29-3 Using @PersistenceContext With the OC4J Default Persistence Unit
29-4 Using @PersistenceContext With a Named Persistence Unit
29-5 Using InitialContext to Lookup an EntityManager in a Stateless Session Bean
29-6 Using InitialContext to Lookup an EntityManager in a Servlet
29-7 Creating a Entity with the EntityManager
29-8 Finding an Entity by Primary Key Using the EntityManager
29-9 Creating a Named Query with the EntityManager
29-10 Creating a Dynamic Query Using the EntityManager
29-11 Creating a Dynamic EJB QL Query with Parameters Using the EntityManager
29-12 Creating a Dynamic TopLink Expression Query Using the Entity Manager
29-13 Creating a Dynamic Native SQL Query with the EntityManager
29-14 Creating a Dynamic Native SQL Query with Parameters Using the EntityManager
29-15 Configuring a Query with a Hint
29-16 Executing a Query that Returns Multiple Results
29-17 Executing a Query that Returns a Single Result
29-18 Executing an Updating Query
29-19 Refreshing an Entity from the Database
29-20 Removing an Entity
29-21 Sending Updates to the Database within a Transaction
29-22 Merging an Entity into the Persistence Context of an EntityManager
29-23 Accessing EJBContext Using @Resource
29-24 Accessing an EJB 2.1 EJB Using RMI from a Standalone Java Client
29-25 Servlet Client Sends Message to a Queue
29-26 JSP Client Sends Message to a Topic
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 Setting -validateXML in oc4j.cmd