For EJB 2.1 session, entity, and message-driven beans, you can access the EJBContext that OC4J provides by providing an appropriate get and set method when you implement your bean.
EJBContext
get
set
For more information, see:
"What is EJB Context?"
"Implementing the setSessionContext Method"
"Implementing the setEntityContext and unsetEntityContext Methods"
"Implementing the setMessageDrivenContext Method"