org.jfox.ejb
Class StatefulSessionBucket
java.lang.Object
org.jfox.ejb.BucketSupport
org.jfox.ejb.SessionBucket
org.jfox.ejb.StatefulSessionBucket
- All Implemented Interfaces:
- Bucket, EJBOperation, SessionOperation
- public class StatefulSessionBucket
- extends SessionBucket
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulSessionBucket
public StatefulSessionBucket(BucketMetaData meta)
invokeHome
public java.lang.Object invokeHome(Invocation invocation)
throws java.lang.Exception
- 来自 EJBHome 的方法
- Parameters:
invocation -
- Returns:
-
- Throws:
java.lang.Exception
invokeBean
public java.lang.Object invokeBean(Invocation invocation)
throws java.lang.Exception
- 执行 Bean 的方法
- Parameters:
invocation -
- Returns:
-
- Throws:
java.lang.Exception
remove
public void remove(javax.ejb.EnterpriseBean bean)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- Throws:
java.rmi.RemoteException
javax.ejb.RemoveException
remove
public void remove(javax.ejb.Handle handle)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- Description copied from interface:
EJBOperation
- Remove an EJB object identified by its handle.
- Throws:
java.rmi.RemoteException - Thrown when the method failed due to a
system-level failure.
javax.ejb.RemoveException - Thrown if the enterprise Bean or
the container does not allow the client to remove the object.
isIdentical
public boolean isIdentical(ObjectId thisObjectId,
ObjectId thatObjectId)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
retrieveBean
public EJBPoolableObject retrieveBean(java.lang.Object key)
- Specified by:
retrieveBean in class SessionBucket
restoreBean
public void restoreBean(java.lang.Object key,
EJBPoolableObject pobj)
- Specified by:
restoreBean in class SessionBucket
createBean
public ObjectId createBean(Invocation invocation)
throws java.lang.Exception
- Specified by:
createBean in class SessionBucket
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)