org.apache.hivemind.lib.impl
Class AbstractEJBProxy
java.lang.Object
org.apache.hivemind.lib.impl.AbstractEJBProxy
- public abstract class AbstractEJBProxy
- extends java.lang.Object
Generic EJB proxy for stateless session beans. Acts as an InvocationHandler
for a dynamic proxy.
- Author:
- Howard Lewis Ship
Method Summary |
protected abstract void |
_clearCachedReferences()
Clears the home and remote objects after any remote exception. |
protected void |
_handleRemoteException(java.rmi.RemoteException ex)
Invoked by the fabricated subclass when a remote exception occurs. |
protected java.lang.Object |
_lookup(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEJBProxy
protected AbstractEJBProxy(NameLookup nameLookup,
RemoteExceptionCoordinator coordinator)
_lookup
protected java.lang.Object _lookup(java.lang.String name)
_clearCachedReferences
protected abstract void _clearCachedReferences()
- Clears the home and remote objects after any remote exception.
_handleRemoteException
protected void _handleRemoteException(java.rmi.RemoteException ex)
- Invoked by the fabricated subclass when a remote exception occurs.
This notifies the
RemoteExceptionCoordinator
(which, indirectly,
allows the NameLookup
service to release its JNDI context).
In addition, _clearCachedReferences()
is invoked.