org.jboss.webbeans.ejb.api
Interface SessionObjectReference

All Superinterfaces:
java.io.Serializable

public interface SessionObjectReference
extends java.io.Serializable

A serializable reference to a session object in the EJB container

Author:
Pete Muir

Method Summary
<S> S
getBusinessObject(java.lang.Class<S> businessInterfaceType)
          Get the reference from the EJB container to the session object for the given business interface
 void remove()
          Request the EJB container remove the stateful session object
 

Method Detail

getBusinessObject

<S> S getBusinessObject(java.lang.Class<S> businessInterfaceType)
Get the reference from the EJB container to the session object for the given business interface

Type Parameters:
S - the type of the business interface
Parameters:
businessInterfaceType - the type of the business interface
Returns:
a reference
Throws:
java.lang.IllegalStateException - if the business interface is not a local business interface of the session bean
NoSuchEJBException - if the session object has already been removed

remove

void remove()
Request the EJB container remove the stateful session object

Throws:
java.lang.UnsupportedOperationException - if the reference is not backed by a stateful session object
NoSuchEJBException - if the session object has already been removed


Copyright © 2011. All Rights Reserved.