org.openejb.core.ivm
Class SpecialProxyInfo

java.lang.Object
  extended by org.openejb.ProxyInfo
      extended by org.openejb.core.ivm.SpecialProxyInfo

public class SpecialProxyInfo
extends ProxyInfo

Business methods that return EJBHome or EJBObject references to local beans (beans in the same container system) must have the return value converted to a ProxyInfo object so that the server can provide the client with a proper remote reference. Local remote references -- called proxies -- are handled using the org.openejb.core.ivm.BaseEjbProxyHandler types, which should not be returned to the client. Non-local remote references are assumed to be serializable and valid return types for the clients.

If the reference is a local remote reference -- a proxy -- this subtype of ProxyInfo is returned. This class type is useful when the calling server is the IntraVM server. Instead of creating a new remote ref from the proxy the IntraVM takes a short cut and reuses the original local remote reference -- they are thread safe with no synchronization.

See Section 2.2.1.2.5 Remote References of the OpenEJB specification.

Author:
Richard Monson-Haefel, David Blevins
See Also:
ProxyInfo

Field Summary
protected  java.lang.Object proxy
           
 
Fields inherited from class org.openejb.ProxyInfo
beanContainer, deploymentInfo, primaryKey, type
 
Constructor Summary
SpecialProxyInfo(java.lang.Object proxy)
           
 
Method Summary
 java.lang.Object getProxy()
           
 
Methods inherited from class org.openejb.ProxyInfo
getBeanContainer, getDeploymentInfo, getInterface, getPrimaryKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

protected java.lang.Object proxy
Constructor Detail

SpecialProxyInfo

public SpecialProxyInfo(java.lang.Object proxy)
Method Detail

getProxy

public java.lang.Object getProxy()


Copyright © 1999-2011 OpenEJB. All Rights Reserved.