org.apache.hivemind.lib.impl
Class AbstractEJBProxy

java.lang.Object
  extended by 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

Constructor Summary
protected AbstractEJBProxy(NameLookup nameLookup, RemoteExceptionCoordinator coordinator)
           
 
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
 

Constructor Detail

AbstractEJBProxy

protected AbstractEJBProxy(NameLookup nameLookup,
                           RemoteExceptionCoordinator coordinator)
Method Detail

_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.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.