jrun.ejb.invocation
Class ClientInvocationHandlerImpl

java.lang.Object
  |
  +--jrunx.rmi.RemoteInvocationHandler
        |
        +--jrun.ejb.invocation.ClientInvocationHandlerImpl
All Implemented Interfaces:
ClientInvocationHandler, ClusterConstants, java.io.Externalizable, java.lang.reflect.InvocationHandler, RemoteConstants, java.io.Serializable

public class ClientInvocationHandlerImpl
extends RemoteInvocationHandler
implements ClientInvocationHandler, java.io.Externalizable

This implementation of ClientInvocationHandler responds to all method invocations on a specific EJBHome and EJBObject. There is one ClientInvocationHandler per client per EJB reference.
This object is passed by value to the client when the client retrieves a dynamic proxy representing the bean's EJBHome and EJBObject.
This object contains a stub reference to a remote container listener. All containers, and thus all deployed EJB's, share this same stub.

Author:
PS Neville
See Also:
Serialized Form

Fields inherited from class jrunx.rmi.RemoteInvocationHandler
clusterAlgorithm, initialServers, invocationClass, rmiMarshalling, subsystem, system
 
Fields inherited from interface jrunx.rmi.RemoteConstants
EJB, EJB_CONTAINER, JDBC, JMS, SERVICE
 
Fields inherited from interface jrunx.cluster.ClusterConstants
AVAILABLE_SERVICES, CLUSTER_MANAGER_JNDI, DEFAULT_CLUSTER_DOMAIN, DEFAULT_ENABLED, JINI_CODE_BASE_JAR, PRIMARY_SERVICE, SECONDARY_SERVICE
 
Constructor Summary
ClientInvocationHandlerImpl()
           
ClientInvocationHandlerImpl(ClientInvokableContainer container)
           
ClientInvocationHandlerImpl(ClientInvokableContainer container, java.lang.Object id, java.lang.Object securityId)
           
 
Method Summary
 java.lang.Object getID()
           
 java.util.Set getIorDescriptors()
           
 java.lang.String getJndiProviderURL()
           
 java.lang.String getName()
           
 java.lang.String getTxDomain()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Called by client.
 boolean isLocal()
           
protected  java.lang.Object marshall(java.lang.Object obj)
           
 void readExternal(java.io.ObjectInput in)
           
 void setID(java.lang.Object id)
           
 void setIorDescriptors(java.util.Set iorDescriptors)
           
 void setJndiProviderURL(java.lang.String jndiProviderURL)
           
 void setLocal(boolean b)
           
 void setMarshalledId(java.lang.Object id)
           
 void setTxDomain(java.lang.String txDomain)
           
protected  java.lang.Object unmarshall(java.lang.Object obj)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class jrunx.rmi.RemoteInvocationHandler
addAvailableServer, getAvailableServers, getClusterAlgorithm, getInvocation, getSubsystem, getSystem, invoke, matchesStubType, setAvailableServers, setClusterAlgorithm, setRmiMarshalling, setSubsystem, setSystem, toStubs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInvocationHandlerImpl

public ClientInvocationHandlerImpl()

ClientInvocationHandlerImpl

public ClientInvocationHandlerImpl(ClientInvokableContainer container)

ClientInvocationHandlerImpl

public ClientInvocationHandlerImpl(ClientInvokableContainer container,
                                   java.lang.Object id,
                                   java.lang.Object securityId)
Method Detail

getID

public java.lang.Object getID()
                       throws java.lang.Exception
Specified by:
getID in interface ClientInvocationHandler

setID

public void setID(java.lang.Object id)
Specified by:
setID in interface ClientInvocationHandler

setMarshalledId

public void setMarshalledId(java.lang.Object id)

isLocal

public boolean isLocal()
Specified by:
isLocal in interface ClientInvocationHandler

setLocal

public void setLocal(boolean b)
Specified by:
setLocal in interface ClientInvocationHandler

getJndiProviderURL

public java.lang.String getJndiProviderURL()

setJndiProviderURL

public void setJndiProviderURL(java.lang.String jndiProviderURL)

setTxDomain

public void setTxDomain(java.lang.String txDomain)

getTxDomain

public java.lang.String getTxDomain()

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Called by client.
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Overrides:
invoke in class RemoteInvocationHandler

getIorDescriptors

public java.util.Set getIorDescriptors()

setIorDescriptors

public void setIorDescriptors(java.util.Set iorDescriptors)

getName

public java.lang.String getName()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class RemoteInvocationHandler

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class RemoteInvocationHandler

unmarshall

protected java.lang.Object unmarshall(java.lang.Object obj)
                               throws java.io.IOException,
                                      java.lang.ClassNotFoundException

marshall

protected java.lang.Object marshall(java.lang.Object obj)
                             throws java.io.IOException


Copyright � 2002 Macromedia Corporation. All Rights Reserved.