Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (

Part Number E13981-01
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

Accessing an EJB 3.0 EJBContext

For EJB 3.0 session and message-driven beans, you can access the EJBContext that OC4J provides (see "Using Resource Injection").

For more information, see the following:

Using Resource Injection

In an EJB 3.0 EJB client, you can use @Resource injection to access the EJBContext, as Example 29-32 shows.

Example 29-32 Accessing EJBContext Using @Resource

@Resource SessionContext ctx;