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
| 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 |
ClientInvocationHandlerImpl
public ClientInvocationHandlerImpl()
ClientInvocationHandlerImpl
public ClientInvocationHandlerImpl(ClientInvokableContainer container)
ClientInvocationHandlerImpl
public ClientInvocationHandlerImpl(ClientInvokableContainer container,
java.lang.Object id,
java.lang.Object securityId)
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.