protected Object _writeReplace(Object proxy) throws ObjectStreamException { /* * If the proxy is being copied between bean instances in a RPC * call we use the IntraVmArtifact */ if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy); /* * If the proxy is referenced by a stateful bean that is being * passivated by the container we allow this object to be serialized. */ } else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy; /* * If the proxy is being copied between class loaders * we allow this object to be serialized. */ } else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy; /* * If the proxy is serialized outside the core container system, * we allow the application server to handle it. */ } else { ApplicationServer applicationServer = ServerFederation.getApplicationServer(); return applicationServer.getEJBHome(this.getProxyInfo()); } }
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(proxy);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);
if (IntraVmCopyMonitor.isIntraVmCopyOperation()) { return new IntraVmArtifact(this);