summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-01-17 08:19:16 (EST)
committerChristian Campo2008-01-17 08:19:16 (EST)
commitfa21ccdda10e2e061351ad285093d65f259b944f (patch)
tree44f3dc9f689b0ee35663cb75f2723f293b081b01
parent9e02b51b96b4800ef7544e2c438d5cd6a456790f (diff)
downloadorg.eclipse.riena-fa21ccdda10e2e061351ad285093d65f259b944f.zip
org.eclipse.riena-fa21ccdda10e2e061351ad285093d65f259b944f.tar.gz
org.eclipse.riena-fa21ccdda10e2e061351ad285093d65f259b944f.tar.bz2
changes to make hessian-3.1.3 work again disabling the check for Serializable in the SerializerFactory of hessian
-rw-r--r--org.eclipse.riena.communication.factory.hessian/META-INF/MANIFEST.MF1
-rw-r--r--org.eclipse.riena.communication.factory.hessian/about.html24
-rw-r--r--org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java8
3 files changed, 33 insertions, 0 deletions
diff --git a/org.eclipse.riena.communication.factory.hessian/META-INF/MANIFEST.MF b/org.eclipse.riena.communication.factory.hessian/META-INF/MANIFEST.MF
index 5a645e6..09b7726 100644
--- a/org.eclipse.riena.communication.factory.hessian/META-INF/MANIFEST.MF
+++ b/org.eclipse.riena.communication.factory.hessian/META-INF/MANIFEST.MF
@@ -5,6 +5,7 @@ Bundle-SymbolicName: org.eclipse.riena.communication.factory.hessian
Bundle-Version: 0.0.1
Bundle-Activator: org.eclipse.riena.internal.communication.factory.hessian.Activator
Import-Package: com.caucho.hessian.client,
+ com.caucho.hessian.io,
org.osgi.framework;version="1.4.0"
Require-Bundle: org.eclipse.riena.communication.core,
org.eclipse.osgi.services
diff --git a/org.eclipse.riena.communication.factory.hessian/about.html b/org.eclipse.riena.communication.factory.hessian/about.html
new file mode 100644
index 0000000..fc81119
--- /dev/null
+++ b/org.eclipse.riena.communication.factory.hessian/about.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head>
+
+
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>About</title></head><body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2006</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+<div style="position: absolute; width: 28px; height: 28px; z-index: 1000; display: none;"></div><img style="position: absolute; width: 35px; height: 29px; z-index: 1000; display: none;" src="about-Dateien/launch.png"></body></html> \ No newline at end of file
diff --git a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java
index 5d1a074..810b302 100644
--- a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java
+++ b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java
@@ -26,6 +26,7 @@ import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.cm.ManagedService;
import com.caucho.hessian.client.HessianProxyFactory;
+import com.caucho.hessian.io.SerializerFactory;
public class MyHessianProxyFactory extends HessianProxyFactory implements ManagedService {
@@ -60,6 +61,13 @@ public class MyHessianProxyFactory extends HessianProxyFactory implements Manage
return connection;
}
+ @Override
+ public SerializerFactory getSerializerFactory() {
+ SerializerFactory serializerFactory = super.getSerializerFactory();
+ serializerFactory.setAllowNonSerializable(true);
+ return serializerFactory;
+ }
+
public void setCallMessageContextAccessor(ICallMessageContextAccessor mca) {
this.mca = mca;
}