org.openejb.ri.server
Class EjbProxyHandler

java.lang.Object
  |
  +--org.openejb.ri.server.EjbProxyHandler
All Implemented Interfaces:
InvocationHandler, java.io.Serializable

public class EjbProxyHandler
extends java.lang.Object
implements InvocationHandler, java.io.Serializable

This InvocationHandler and its proxy are serializable and can be used by HomeHandle, Handle, and MetaData to persist and revive handles. It maintains its original client identity which allows the container to be more discerning about allowing the revieed proxy to be used. See StatefulContaer manager for more details.

See Also:
Serialized Form

Field Summary
(package private)  java.io.Serializable deploymentID
           
(package private)  boolean inProxyMap
           
(package private)  java.lang.String ip
           
(package private)  boolean isInvalidReference
           
(package private)  RPCMessage message
           
(package private)  java.io.ObjectInputStream ois
           
(package private)  java.io.ObjectOutputStream oos
           
(package private)  int port
           
(package private)  java.io.Serializable primaryKey
           
(package private)  java.lang.String securityToken
           
(package private)  java.net.Socket socket
           
 
Constructor Summary
EjbProxyHandler()
          Public no-arg constructor required by Externalizable API
EjbProxyHandler(int port, java.lang.String ip, java.lang.Object pk, java.lang.Object depID, java.lang.String securityToken)
           
 
Method Summary
protected  void finalize()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

transient java.net.Socket socket

message

transient RPCMessage message

oos

transient java.io.ObjectOutputStream oos

ois

transient java.io.ObjectInputStream ois

port

int port

ip

java.lang.String ip

deploymentID

java.io.Serializable deploymentID

primaryKey

java.io.Serializable primaryKey

inProxyMap

boolean inProxyMap

isInvalidReference

boolean isInvalidReference

securityToken

java.lang.String securityToken
Constructor Detail

EjbProxyHandler

public EjbProxyHandler()
Public no-arg constructor required by Externalizable API

EjbProxyHandler

public EjbProxyHandler(int port,
                       java.lang.String ip,
                       java.lang.Object pk,
                       java.lang.Object depID,
                       java.lang.String securityToken)
Method Detail

invoke

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

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object