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"); }
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); setBeanContext(containerSystem.getBeanContext(deploymentID)); container = (RpcContainer) getBeanContext().getContainer(); if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { setDoCrossClassLoaderCopy(true); } setInterfaces((List<Class>) in.readObject()); setMainInterface((Class) in.readObject()); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject(); ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); setDeploymentInfo(containerSystem.getDeploymentInfo(deploymentID)); container = (RpcContainer) getDeploymentInfo().getContainer(); if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { setDoCrossClassLoaderCopy(true); } setInterfaces((List<Class>) in.readObject()); setMainInterface((Class) in.readObject()); }
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); if(null == containerSystem){ throw new OpenEJBRuntimeException("ContainerSystem has not been initialized"); } setBeanContext(containerSystem.getBeanContext(deploymentID)); container = (RpcContainer) getBeanContext().getContainer(); if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { setDoCrossClassLoaderCopy(true); } setInterfaces((List<Class>) in.readObject()); setMainInterface((Class) in.readObject()); }
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.isCrossClassLoaderOperation()) { return this;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return this;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return this;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return this;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return this;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return proxy;
} else if (IntraVmCopyMonitor.isCrossClassLoaderOperation()) { return this;