summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-01-17 09:41:29 (EST)
committerChristian Campo2008-01-17 09:41:29 (EST)
commit00dadf4f2ef039fb549eaf8bd68f5f91c41d8f66 (patch)
tree79c9c018a187221348d0af204ae1a544f6c5d404
parent15b5b44a7f04944c324ebc656dcafde080a28af3 (diff)
downloadorg.eclipse.riena-00dadf4f2ef039fb549eaf8bd68f5f91c41d8f66.zip
org.eclipse.riena-00dadf4f2ef039fb549eaf8bd68f5f91c41d8f66.tar.gz
org.eclipse.riena-00dadf4f2ef039fb549eaf8bd68f5f91c41d8f66.tar.bz2
initial checkin
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/.classpath7
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/.project28
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/.settings/org.eclipse.pde.core.prefs4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/META-INF/MANIFEST.MF11
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/about.html24
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/build.properties5
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/plugin.xml15
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client.config/src/org/eclipse/riena/internal/communication/sample/pingpong/client/config/Activator.java68
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/.classpath7
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/.project28
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/.settings/org.eclipse.pde.core.prefs4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/META-INF/MANIFEST.MF8
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/Riena Sample PingPong Client.launch23
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/about.html24
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/build.properties4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.client/src/org/eclipse/riena/internal/communication/sample/pingpong/client/Activator.java75
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/.classpath7
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/.project28
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/.settings/org.eclipse.pde.core.prefs4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/META-INF/MANIFEST.MF8
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/about.html24
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/build.properties4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/IPingPong.java34
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Message.java44
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Ping.java21
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Pong.java20
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/.classpath7
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/.project28
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/.settings/org.eclipse.pde.core.prefs4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/META-INF/MANIFEST.MF9
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/Riena Sample PingPong Server.launch22
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/about.html24
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/build.properties4
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/Activator.java64
-rw-r--r--org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/PingPong.java41
35 files changed, 732 insertions, 0 deletions
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/.classpath b/org.eclipse.riena.communication.sample.pingpong.client.config/.classpath
new file mode 100644
index 0000000..751c8f2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/.project b/org.eclipse.riena.communication.sample.pingpong.client.config/.project
new file mode 100644
index 0000000..c2d2f11
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.riena.communication.sample.pingpong.client.config</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/.settings/org.eclipse.pde.core.prefs b/org.eclipse.riena.communication.sample.pingpong.client.config/.settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..e5f996f
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/.settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,4 @@
+#Thu Oct 18 14:48:39 CEST 2007
+eclipse.preferences.version=1
+pluginProject.extensions=true
+resolve.requirebundle=false
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/META-INF/MANIFEST.MF b/org.eclipse.riena.communication.sample.pingpong.client.config/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..61d3318
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Riena Communication Sample PingPong Client Config (Incubation)
+Bundle-SymbolicName: org.eclipse.riena.communication.sample.pingpong.client.config;singleton:=true
+Bundle-Version: 0.0.1
+Bundle-Activator: org.eclipse.riena.internal.communication.sample.pingpong.client.config.Activator
+Eclipse-LazyStart: true
+Import-Package: org.osgi.framework;version="1.4.0"
+Require-Bundle: org.eclipse.riena.communication.core,
+ org.eclipse.riena.communication.sample.pingpong.common,
+ org.eclipse.riena.core
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/about.html b/org.eclipse.riena.communication.sample.pingpong.client.config/about.html
new file mode 100644
index 0000000..fc81119
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/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.sample.pingpong.client.config/build.properties b/org.eclipse.riena.communication.sample.pingpong.client.config/build.properties
new file mode 100644
index 0000000..e9863e2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/build.properties
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/plugin.xml b/org.eclipse.riena.communication.sample.pingpong.client.config/plugin.xml
new file mode 100644
index 0000000..692175f
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/plugin.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.eclipse.riena.config.managedService">
+ <config
+ servicepid="org.eclipse.riena.config.symbols">
+ <property
+ name="localhost"
+ value="127.0.0.1">
+ </property>
+ </config>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client.config/src/org/eclipse/riena/internal/communication/sample/pingpong/client/config/Activator.java b/org.eclipse.riena.communication.sample.pingpong.client.config/src/org/eclipse/riena/internal/communication/sample/pingpong/client/config/Activator.java
new file mode 100644
index 0000000..8f4e63a
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client.config/src/org/eclipse/riena/internal/communication/sample/pingpong/client/config/Activator.java
@@ -0,0 +1,68 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.internal.communication.sample.pingpong.client.config;
+
+import org.eclipse.riena.communication.core.IRemoteServiceRegistration;
+import org.eclipse.riena.communication.core.factory.RemoteServiceFactory;
+import org.eclipse.riena.communication.sample.pingpong.common.IPingPong;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+
+/**
+ * The Ping Pong sample shows to config a "remote" OSGi Services on the base of service end point parameters.
+ *
+ * This sample Activator registers manually the remote PingPong end point as remote OSGi Service into the
+ * ServiceRegistry. This is reached by a simple way using the Riena communication RemoteServiceFactory. #createAndRegisterProxy
+ * creates a proxy references for the end point and registers the proxy references as RemoteServiceReference into the
+ * Riena communication IRemoteServiceRegistry OSGi Service. The IRemoteServiceRegistry itself registers and manages the
+ * RemoteServiceReferences as remote OSGi service within the ServiceRegistry.
+ *
+ * @author Alexander Ziegler
+ * @author Christian Campo
+ *
+ */
+public class Activator implements BundleActivator {
+
+ private IRemoteServiceRegistration pingPongReg;
+ private IRemoteServiceRegistration pingPongRegXFire;
+
+ /**
+ * Creates a RemoteServiceReferences based on Hessian protocol and registers this as "remote" OSGi Service
+ */
+ public void start(BundleContext context) throws Exception {
+ // register hessian proxy for nyote remote service
+ RemoteServiceFactory rsf = new RemoteServiceFactory();
+ Class<?> serviceInterface = IPingPong.class;
+ String url = "http://${localhost}/hessian/PingPongWS";
+ String protocol = "hessian";
+
+ pingPongReg = rsf.createAndRegisterProxy(serviceInterface, url, protocol, "de.compeople.pingpong.config");
+
+ // register xfire proxy for nyote remote service
+ url = "http://${localhost}/xfire/PingPongXFireWS";
+ protocol = "xfire";
+
+ // pingPongReg = rsf.createAndRegisterProxy(serviceInterface, url, protocol);
+
+ }
+
+ /**
+ * unregister end release the "remote" OSGi Service
+ */
+ public void stop(BundleContext context) throws Exception {
+ if (pingPongReg != null) {
+ pingPongReg.unregister();
+ pingPongReg = null;
+ }
+ }
+
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/.classpath b/org.eclipse.riena.communication.sample.pingpong.client/.classpath
new file mode 100644
index 0000000..751c8f2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/.project b/org.eclipse.riena.communication.sample.pingpong.client/.project
new file mode 100644
index 0000000..c7b4014
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.riena.communication.sample.pingpong.client</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/.settings/org.eclipse.pde.core.prefs b/org.eclipse.riena.communication.sample.pingpong.client/.settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..f27b07f
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/.settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,4 @@
+#Tue Jun 12 16:45:53 CEST 2007
+eclipse.preferences.version=1
+pluginProject.extensions=false
+resolve.requirebundle=false
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/META-INF/MANIFEST.MF b/org.eclipse.riena.communication.sample.pingpong.client/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..9857fa1
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Riena Communication Sample PingPong Client (Incubation)
+Bundle-SymbolicName: org.eclipse.riena.communication.sample.pingpong.client
+Bundle-Version: 0.0.1
+Bundle-Activator: org.eclipse.riena.internal.communication.sample.pingpong.client.Activator
+Import-Package: org.osgi.framework;version="1.4.0"
+Require-Bundle: org.eclipse.riena.communication.sample.pingpong.common
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/Riena Sample PingPong Client.launch b/org.eclipse.riena.communication.sample.pingpong.client/Riena Sample PingPong Client.launch
new file mode 100644
index 0000000..f1ecaba
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/Riena Sample PingPong Client.launch
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Riena Sample PingPong Client"/>
+<booleanAttribute key="default_auto_start" value="true"/>
+<intAttribute key="default_start_level" value="4"/>
+<stringAttribute key="deselected_workspace_plugins" value="org.eclipse.riena.communication.sample.pingpong.server,org.eclipse.riena.communication.console,org.eclipse.riena.communication.publisher.xfire,org.eclipse.riena.config.test,org.eclipse.riena.core.tests,org.eclipse.riena.communication.publisher,org.eclipse.riena.communication.publisher.hessian,org.eclipse.riena.exceptionhandler,org.eclipse.riena.exceptionmanager"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console -clean"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Declipse.ignoreApp=true -Dosgi.noShutdown=true"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="target_bundles" value="javax.servlet@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@default:default,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.osgi@:,org.eclipse.osgi.services@default:default"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<stringAttribute key="workspace_bundles" value="com.caucho.hessian@default:default,org.apache.log4j@default:default,org.codehaus.xfire@default:default,org.eclipse.equinox.cm@default:default,org.eclipse.equinox.log@default:default,org.eclipse.riena.communication.core@default:default,org.eclipse.riena.communication.discovery@default:default,org.eclipse.riena.communication.factory.hessian@default:default,org.eclipse.riena.communication.factory.xfire@default:default,org.eclipse.riena.communication.registry@default:default,org.eclipse.riena.communication.sample.pingpong.client@default:default,org.eclipse.riena.communication.sample.pingpong.client.config@default:default,org.eclipse.riena.communication.sample.pingpong.common@default:default,org.eclipse.riena.config@default:default,org.eclipse.riena.core@default:default,org.eclipse.riena.exceptionmanager.tests@default:default,org.eclipse.riena.sample.app.client@default:default,org.eclipse.riena.sample.app.client.product@default:default,org.eclipse.riena.sample.app.common@default:default,org.eclipse.riena.sample.app.server@default:default,org.eclipse.riena.ui@default:default"/>
+</launchConfiguration>
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/about.html b/org.eclipse.riena.communication.sample.pingpong.client/about.html
new file mode 100644
index 0000000..fc81119
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/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.sample.pingpong.client/build.properties b/org.eclipse.riena.communication.sample.pingpong.client/build.properties
new file mode 100644
index 0000000..34d2e4d
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/org.eclipse.riena.communication.sample.pingpong.client/src/org/eclipse/riena/internal/communication/sample/pingpong/client/Activator.java b/org.eclipse.riena.communication.sample.pingpong.client/src/org/eclipse/riena/internal/communication/sample/pingpong/client/Activator.java
new file mode 100644
index 0000000..23c5563
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.client/src/org/eclipse/riena/internal/communication/sample/pingpong/client/Activator.java
@@ -0,0 +1,75 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.internal.communication.sample.pingpong.client;
+
+import org.eclipse.riena.communication.sample.pingpong.common.IPingPong;
+import org.eclipse.riena.communication.sample.pingpong.common.Ping;
+import org.eclipse.riena.communication.sample.pingpong.common.Pong;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceEvent;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+
+
+/**
+ * The Ping Pong sample shows how to find a "remote" OSGi Services.
+ *
+ *
+ * This sample Activator finds an IPingPong "remote" OSGi Service by the ServiceRegistry. Sends a Ping to the IPingPong
+ * service and writes the pong result into the console.
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public class Activator implements BundleActivator {
+
+ private BundleContext context;
+
+ public void start(BundleContext context) throws Exception {
+ this.context = context;
+ ServiceReference pingPongRef = context.getServiceReference(IPingPong.ID);
+ if (pingPongRef != null) {
+ new PingClient().sendPing(pingPongRef);
+ } else {
+ context.addServiceListener(new PingClient(), "(objectClass=" + IPingPong.ID + ")");
+ }
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ this.context = null;
+ }
+
+ class PingClient implements ServiceListener {
+
+ public void serviceChanged(ServiceEvent event) {
+
+ ServiceReference pingPongRef = event.getServiceReference();
+ sendPing(pingPongRef);
+
+ }
+
+ void sendPing(ServiceReference pingPongRef) {
+ IPingPong pingPong = (IPingPong) context.getService(pingPongRef);
+ if (pingPong == null) {
+ return;
+ }
+
+ Ping ping = new Ping();
+ ping.setText("I ping you and you pong me");
+
+ Pong pong = pingPong.ping(ping);
+ System.out.println("PingPong::Client:: " + pong);
+
+ }
+ }
+
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/.classpath b/org.eclipse.riena.communication.sample.pingpong.common/.classpath
new file mode 100644
index 0000000..751c8f2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/.project b/org.eclipse.riena.communication.sample.pingpong.common/.project
new file mode 100644
index 0000000..f32eaf6
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.riena.communication.sample.pingpong.common</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/.settings/org.eclipse.pde.core.prefs b/org.eclipse.riena.communication.sample.pingpong.common/.settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..1bc8491
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/.settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,4 @@
+#Tue Jun 12 09:38:45 CEST 2007
+eclipse.preferences.version=1
+pluginProject.extensions=false
+resolve.requirebundle=false
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/META-INF/MANIFEST.MF b/org.eclipse.riena.communication.sample.pingpong.common/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..313e971
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Riena Communication Sample PingPong Common (Incubation)
+Bundle-SymbolicName: org.eclipse.riena.communication.sample.pingpong.common
+Bundle-Version: 0.0.1
+Eclipse-RegisterBuddy: de.compeople.Riena Communication.core
+Export-Package: org.eclipse.riena.communication.sample.pingpong.common
+Require-Bundle: org.eclipse.riena.communication.core
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/about.html b/org.eclipse.riena.communication.sample.pingpong.common/about.html
new file mode 100644
index 0000000..fc81119
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/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.sample.pingpong.common/build.properties b/org.eclipse.riena.communication.sample.pingpong.common/build.properties
new file mode 100644
index 0000000..34d2e4d
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/IPingPong.java b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/IPingPong.java
new file mode 100644
index 0000000..eafb948
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/IPingPong.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.communication.sample.pingpong.common;
+
+/**
+ * Sample interface for simple PingPong service sample
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public interface IPingPong {
+
+ /**
+ * Service ID
+ */
+ String ID = IPingPong.class.getName();
+
+ /**
+ * Receives the given ping and answers a pong
+ *
+ * @param ping
+ * @return pong
+ */
+ Pong ping(Ping ping);
+
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Message.java b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Message.java
new file mode 100644
index 0000000..604f57c
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Message.java
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.communication.sample.pingpong.common;
+
+/**
+ * Simple abstract Message class with text
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public abstract class Message {
+ private String text;
+
+ /**
+ * @return the text message
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * Sets the given ping text
+ *
+ * @param text
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * @return this message text
+ */
+ public String toString() {
+ return "[" + getClass().getSimpleName() + "] says = " + getText();
+ }
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Ping.java b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Ping.java
new file mode 100644
index 0000000..4f6c9c0
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Ping.java
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.communication.sample.pingpong.common;
+
+/**
+ * Simple Ping type.
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public class Ping extends Message {
+
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Pong.java b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Pong.java
new file mode 100644
index 0000000..21ecabe
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.common/src/org/eclipse/riena/communication/sample/pingpong/common/Pong.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.communication.sample.pingpong.common;
+
+/**
+ * Simple Pong type.
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public class Pong extends Message {
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/.classpath b/org.eclipse.riena.communication.sample.pingpong.server/.classpath
new file mode 100644
index 0000000..751c8f2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/.project b/org.eclipse.riena.communication.sample.pingpong.server/.project
new file mode 100644
index 0000000..bd853af
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.riena.communication.sample.pingpong.server</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/.settings/org.eclipse.pde.core.prefs b/org.eclipse.riena.communication.sample.pingpong.server/.settings/org.eclipse.pde.core.prefs
new file mode 100644
index 0000000..b5c50e2
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/.settings/org.eclipse.pde.core.prefs
@@ -0,0 +1,4 @@
+#Tue Jun 12 10:46:46 CEST 2007
+eclipse.preferences.version=1
+pluginProject.extensions=false
+resolve.requirebundle=false
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/META-INF/MANIFEST.MF b/org.eclipse.riena.communication.sample.pingpong.server/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..0e43666
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/META-INF/MANIFEST.MF
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Riena Communication Sample Ping Pong Server (Incubation)
+Bundle-SymbolicName: org.eclipse.riena.communication.sample.pingpong.server
+Bundle-Version: 0.0.1
+Require-Bundle: org.eclipse.riena.communication.sample.pingpong.common,
+ org.eclipse.riena.communication.core
+Bundle-Activator: org.eclipse.riena.internal.communication.sample.pingpong.server.Activator
+Import-Package: org.osgi.framework;version="1.4.0"
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/Riena Sample PingPong Server.launch b/org.eclipse.riena.communication.sample.pingpong.server/Riena Sample PingPong Server.launch
new file mode 100644
index 0000000..2208f4a
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/Riena Sample PingPong Server.launch
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="automaticAdd" value="false"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Riena Sample PingPong Server"/>
+<booleanAttribute key="default_auto_start" value="true"/>
+<intAttribute key="default_start_level" value="4"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console -clean"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dorg.eclipse.equinox.http.jetty.http.port=8080"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="target_bundles" value="javax.servlet@default:default,org.apache.commons.logging@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.osgi@:,org.eclipse.osgi.services@default:default,org.mortbay.jetty@default:default"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<stringAttribute key="workspace_bundles" value="com.caucho.hessian@default:default,org.apache.log4j@default:default,org.codehaus.xfire@default:default,org.eclipse.equinox.log@default:default,org.eclipse.riena.communication.console@default:default,org.eclipse.riena.communication.core@default:default,org.eclipse.riena.communication.publisher@default:default,org.eclipse.riena.communication.publisher.hessian@default:default,org.eclipse.riena.communication.publisher.xfire@default:default,org.eclipse.riena.communication.sample.pingpong.common@default:default,org.eclipse.riena.communication.sample.pingpong.server@default:default,org.eclipse.riena.core@default:default"/>
+</launchConfiguration>
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/about.html b/org.eclipse.riena.communication.sample.pingpong.server/about.html
new file mode 100644
index 0000000..fc81119
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/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.sample.pingpong.server/build.properties b/org.eclipse.riena.communication.sample.pingpong.server/build.properties
new file mode 100644
index 0000000..34d2e4d
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/Activator.java b/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/Activator.java
new file mode 100644
index 0000000..937277b
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/Activator.java
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.riena.internal.communication.sample.pingpong.server;
+
+import java.util.Hashtable;
+
+import org.eclipse.riena.communication.core.publisher.RSDPublisherProperties;
+import org.eclipse.riena.communication.sample.pingpong.common.IPingPong;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * The Ping Pong sample shows how to publish an OSGi Services.
+ *
+ * This sample Activator registers the IPingPong OSGi Service. This service
+ * becomes published by the Riena Communication Hessian Publisher
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public class Activator implements BundleActivator {
+ private ServiceRegistration pingPongReg;
+
+ public void start(BundleContext context) throws Exception {
+ // create hessian service
+ PingPong pingPong = new PingPong();
+ Hashtable<String, String> properties = new Hashtable<String, String>(3);
+
+ properties.put(RSDPublisherProperties.PROP_IS_REMOTE, "true");
+ properties.put(RSDPublisherProperties.PROP_REMOTE_PROTOCOL, "hessian");
+ properties.put(RSDPublisherProperties.PROP_REMOTE_PATH, "/PingPongWS");
+
+ pingPongReg = context.registerService(IPingPong.ID, pingPong,
+ properties);
+
+ // create xfire service
+ pingPong = new PingPong();
+ properties = new Hashtable<String, String>(3);
+
+ properties.put(RSDPublisherProperties.PROP_IS_REMOTE, "true");
+ properties.put(RSDPublisherProperties.PROP_REMOTE_PROTOCOL, "xfire");
+ properties.put(RSDPublisherProperties.PROP_REMOTE_PATH,
+ "/PingPongXFireWS");
+
+ pingPongReg = context.registerService(IPingPong.ID, pingPong,
+ properties);
+
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ pingPongReg.unregister();
+ pingPongReg = null;
+ }
+
+}
diff --git a/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/PingPong.java b/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/PingPong.java
new file mode 100644
index 0000000..2806cb6
--- /dev/null
+++ b/org.eclipse.riena.communication.sample.pingpong.server/src/org/eclipse/riena/internal/communication/sample/pingpong/server/PingPong.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2007 compeople AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.riena.internal.communication.sample.pingpong.server;
+
+import org.eclipse.riena.communication.sample.pingpong.common.IPingPong;
+import org.eclipse.riena.communication.sample.pingpong.common.Ping;
+import org.eclipse.riena.communication.sample.pingpong.common.Pong;
+
+/**
+ * Simple PingPong sample implementation
+ *
+ * @author Alexander Ziegler
+ *
+ */
+public class PingPong implements IPingPong {
+
+ /**
+ * Writes the given ping into the console and answers a pong.
+ *
+ * @see org.eclipse.riena.communication.sample.pingpong.common.IPingPong#ping(org.eclipse.riena.communication.sample.pingpong.common.Ping)
+ */
+ public Pong ping(Ping ping) {
+
+ System.out.println("PingPong::Server:: " + ping);
+
+ Pong pong = new Pong();
+ pong.setText("Thx. I got the ping!");
+
+ return pong;
+ }
+
+}