public interface SessionObjectReference extends Serializable
Modifier and Type | Method and Description |
---|---|
<S> S |
getBusinessObject(Class<S> businessInterfaceType)
Get the reference from the EJB container to the session object for the given business interface
|
boolean |
isRemoved()
Determine whether the session object has been removed.
|
void |
remove()
Request the EJB container remove the stateful session object
|
<S> S getBusinessObject(Class<S> businessInterfaceType)
S
- the type of the business interfacebusinessInterfaceType
- the type of the business interfaceIllegalStateException
- if the business interface is not a business interface of the session beanjavax.ejb.NoSuchEJBException
- if the session object has already been removedvoid remove()
UnsupportedOperationException
- if the reference is not backed by a stateful session objectjavax.ejb.NoSuchEJBException
- if the session object has already been removedboolean isRemoved()
getBusinessObject(Class)
then this method should not return
true.Copyright © 2008-2015. All Rights Reserved.