org.jboss.ejb
Interface InstancePool

All Superinterfaces:
ContainerPlugin, Service
All Known Implementing Classes:
AbstractInstancePool, SingletonStatelessSessionInstancePool

public interface InstancePool
extends ContainerPlugin

Version:
$Revision: 1.3 $
Author:
Rickard Öberg (rickard.oberg@telkel.com)
See Also:

Method Summary
 void discard(EnterpriseContext ctx)
          Discard an anonymous instance after invocation.
 void free(EnterpriseContext ctx)
          Return an anonymous instance after invocation.
 EnterpriseContext get()
          Get an instance without identity.
 
Methods inherited from interface org.jboss.ejb.ContainerPlugin
setContainer
 
Methods inherited from interface org.jboss.util.Service
destroy, init, start, stop
 

Method Detail

get

public EnterpriseContext get()
                      throws java.lang.Exception
Get an instance without identity. Can be used by finders and create-methods, or stateless beans
Returns:
Context /w instance
Throws:
java.rmi.RemoteException -  

free

public void free(EnterpriseContext ctx)
Return an anonymous instance after invocation.
Parameters:
ctx -  

discard

public void discard(EnterpriseContext ctx)
Discard an anonymous instance after invocation. This is called if the instance should not be reused, perhaps due to some exception being thrown from it.
Parameters:
ctx -  


Copyright © 2000 The JBoss Organization. All Rights Reserved.