protected Object writeReplace() throws ObjectStreamException { if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return new JndiEncArtifact(this); } else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return new JndiEncArtifact(this); } throw new NotSerializableException("IntraVM java.naming.Context objects can not be passed as arguments"); }
protected Object writeReplace() throws ObjectStreamException { if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return new JndiEncArtifact(this); } else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return new JndiEncArtifact(this); } throw new NotSerializableException("IntraVM java.naming.Context objects can not be passed as arguments"); }
protected Object writeReplace() throws ObjectStreamException { if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return new JndiEncArtifact(this); } else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return new JndiEncArtifact(this); } throw new NotSerializableException("IntraVM java.naming.Context objects can not be passed as arguments"); }
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()); } }
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;
} else if (IntraVmCopyMonitor.isStatefulPassivationOperation()) { return this;