javax.ejb
Interface SessionContext

All Superinterfaces:
javax.ejb.EJBContext

public interface SessionContext
extends javax.ejb.EJBContext


Method Summary
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 java.lang.Object getReference()
          Returns an instance of the business interface suitable for passing to other components.
 java.lang.Object getReference(java.lang.Class iface)
          Returns an instance of the specified business interface suitable for passing to other components.
 java.lang.Object lookup(java.lang.String name)
          TODO actually on EJBContext as of EJB 3.0
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Method Detail

getEJBLocalObject

javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getEJBObject

javax.ejb.EJBObject getEJBObject()
                                 throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getReference

java.lang.Object getReference()
Returns an instance of the business interface suitable for passing to other components. This is only valid for EJB3 session beans.


getReference

java.lang.Object getReference(java.lang.Class iface)
Returns an instance of the specified business interface suitable for passing to other components. This is only valid for EJB3 session beans.


lookup

java.lang.Object lookup(java.lang.String name)
TODO actually on EJBContext as of EJB 3.0

Parameters:
name -
Returns:


Copyright 2006 Interface21. All Rights Reserved.