cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From egl...@apache.org
Subject svn commit: r710041 - in /cxf/sandbox/dosgi/samples/greeter: client/src/main/resources/OSGI-INF/remote-services/remote-services.xml impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java
Date Mon, 03 Nov 2008 12:09:59 GMT
Author: eglynn
Date: Mon Nov  3 04:09:58 2008
New Revision: 710041

URL: http://svn.apache.org/viewvc?rev=710041&view=rev
Log:
[dOSGi] Adding greeter demo improvements on behalf of David Bosschaert (CXF-1879)

Modified:
    cxf/sandbox/dosgi/samples/greeter/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
    cxf/sandbox/dosgi/samples/greeter/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java

Modified: cxf/sandbox/dosgi/samples/greeter/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/greeter/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml?rev=710041&r1=710040&r2=710041&view=diff
==============================================================================
--- cxf/sandbox/dosgi/samples/greeter/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
(original)
+++ cxf/sandbox/dosgi/samples/greeter/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
Mon Nov  3 04:09:58 2008
@@ -17,11 +17,6 @@
   <service-description>
     <interface name="org.apache.cxf.dosgi.samples.greeter.GreeterService" />
     <property key="osgi.remote.interfaces">*</property>
-    <property key="osgi.remote.requires.intents">SOAP HTTP</property>
-    <!--
-      property name="osgi.remote.requires.intents">reliability decoupled
-      SOAP HTTP</property
-    -->
     <property key="osgi.remote.configuration.type">pojo</property>
     <property key="osgi.remote.configuration.pojo.address">http://localhost:9090/greeter</property>
   </service-description>

Modified: cxf/sandbox/dosgi/samples/greeter/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/greeter/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java?rev=710041&r1=710040&r2=710041&view=diff
==============================================================================
--- cxf/sandbox/dosgi/samples/greeter/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java
(original)
+++ cxf/sandbox/dosgi/samples/greeter/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/Activator.java
Mon Nov  3 04:09:58 2008
@@ -31,14 +31,12 @@
 public class Activator implements BundleActivator {
     private ServiceRegistration registration;
 
-    @SuppressWarnings("unchecked")
     public void start(BundleContext bc) throws Exception {
         Dictionary props = new Hashtable();
 
-        props.put("org.osgi.remote.publish", true);
-        props.put("org.osgi.remote.configuration.pojo.address", "http://localhost:9090/greeter");
-//        props.put("org.osgi.remote.intents", "SOAP HTTP");
-//        props.put("org.osgi.remote.configuration.type", "pojo");
+        props.put("osgi.remote.interfaces", "*");
+        props.put("osgi.remote.configuration.type", "pojo");
+        props.put("osgi.remote.configuration.pojo.address", "http://localhost:9090/greeter");
         
         registration = bc.registerService(GreeterService.class.getName(), 
                                           new GreeterServiceImpl(), props);



Mime
View raw message