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

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

Go to previous page
Previous
Go to next page
Next
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;