You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/08/02 03:30:25 UTC

svn commit: r427842 - in /webservices/muse/trunk/samples: wsn-consumer/ wsn-consumer/config/ wsn-consumer/src/org/apache/muse/test/wsn/ wsn-consumer/src/org/apache/muse/test/wsn/impl/ wsn-consumer/wsdl/ wsrf/wsdl/

Author: danj
Date: Tue Aug  1 18:30:25 2006
New Revision: 427842

URL: http://svn.apache.org/viewvc?rev=427842&view=rev
Log:
Updated WSN consumer and WSRF samples to use the routing persistence mechanism.

Removed:
    webservices/muse/trunk/samples/wsrf/wsdl/WS-ResourceMetadataDescriptor-CD-01.wsdl
Modified:
    webservices/muse/trunk/samples/wsn-consumer/config/muse.xml
    webservices/muse/trunk/samples/wsn-consumer/config/services.xml
    webservices/muse/trunk/samples/wsn-consumer/readme.txt
    webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/ConsumerCapability.java
    webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/impl/ConsumerCapabilityImpl.java
    webservices/muse/trunk/samples/wsn-consumer/wsdl/WS-BaseNotification-1_3.wsdl

Modified: webservices/muse/trunk/samples/wsn-consumer/config/muse.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/config/muse.xml?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/config/muse.xml (original)
+++ webservices/muse/trunk/samples/wsn-consumer/config/muse.xml Tue Aug  1 18:30:25 2006
@@ -9,11 +9,15 @@
 			<log-file>log/muse.log</log-file>
 			<log-level>FINE</log-level>
 		</logging>
+		<persistence>
+			<java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
+			<persistence-location>router-entries</persistence-location>
+		</persistence>
 	</router>
 	<resource-type>
 		<context-path>consumer</context-path>
 		<wsdl>
-			<wsdl-file>/wsdl/WS-BaseNotification-1_3.wsdl</wsdl-file>
+			<wsdl-file>wsdl/WS-BaseNotification-1_3.wsdl</wsdl-file>
 			<wsdl-port-type>wsntw:NotificationConsumer</wsdl-port-type>
 		</wsdl>
 		<java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>

Modified: webservices/muse/trunk/samples/wsn-consumer/config/services.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/config/services.xml?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/config/services.xml (original)
+++ webservices/muse/trunk/samples/wsn-consumer/config/services.xml Tue Aug  1 18:30:25 2006
@@ -2,11 +2,12 @@
 <serviceGroup>
 
 <service name="consumer">
-    <description>This is the simple WS-N consumer resource type.</description>
+    <description>This is the Apache Muse router service.</description>
     <parameter name="ServiceClass" locked="false">org.apache.muse.core.platform.axis2.AxisIsolationLayer</parameter>
     <operation name="handleRequest">
         <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
-        <actionMapping>http://docs.oasis-open.org/wsn/bw-2/Notify</actionMapping>
+        <actionMapping>http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata</actionMapping>
+        <actionMapping>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest</actionMapping>
     </operation>
 </service>
 

Modified: webservices/muse/trunk/samples/wsn-consumer/readme.txt
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/readme.txt?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/readme.txt (original)
+++ webservices/muse/trunk/samples/wsn-consumer/readme.txt Tue Aug  1 18:30:25 2006
@@ -7,3 +7,8 @@
 publish events via WSN. The simple message listener that is set up 
 to print out the incoming events can be modified to include additional 
 event-processing logic.
+
+The router-entries directory contains an EPR for one instance of the 
+consumer resource - you can subscribe this instance for notifications 
+and it will be created when the application receives its first request 
+and is initialized by the server.

Modified: webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/ConsumerCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/ConsumerCapability.java?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/ConsumerCapability.java (original)
+++ webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/ConsumerCapability.java Tue Aug  1 18:30:25 2006
@@ -17,9 +17,8 @@
 package org.apache.muse.test.wsn;
 
 import org.apache.muse.core.Capability;
-import org.apache.muse.ws.notification.NotificationMessageListener;
 
-public interface ConsumerCapability extends Capability, NotificationMessageListener
+public interface ConsumerCapability extends Capability
 {
     //
     // no additional methods

Modified: webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/impl/ConsumerCapabilityImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/impl/ConsumerCapabilityImpl.java?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/impl/ConsumerCapabilityImpl.java (original)
+++ webservices/muse/trunk/samples/wsn-consumer/src/org/apache/muse/test/wsn/impl/ConsumerCapabilityImpl.java Tue Aug  1 18:30:25 2006
@@ -17,15 +17,15 @@
 package org.apache.muse.test.wsn.impl;
 
 import org.apache.muse.core.AbstractCapability;
+import org.apache.muse.test.wsn.ConsumerCapability;
 import org.apache.muse.ws.addressing.soap.SoapFault;
 import org.apache.muse.ws.notification.NotificationConsumer;
 import org.apache.muse.ws.notification.NotificationMessage;
+import org.apache.muse.ws.notification.NotificationMessageListener;
 import org.apache.muse.ws.notification.WsnConstants;
 
-import org.apache.muse.test.wsn.ConsumerCapability;
-
 public class ConsumerCapabilityImpl 
-    extends AbstractCapability implements ConsumerCapability
+    extends AbstractCapability implements ConsumerCapability, NotificationMessageListener
 {
     public void initializeCompleted() 
         throws SoapFault

Modified: webservices/muse/trunk/samples/wsn-consumer/wsdl/WS-BaseNotification-1_3.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/wsn-consumer/wsdl/WS-BaseNotification-1_3.wsdl?rev=427842&r1=427841&r2=427842&view=diff
==============================================================================
--- webservices/muse/trunk/samples/wsn-consumer/wsdl/WS-BaseNotification-1_3.wsdl (original)
+++ webservices/muse/trunk/samples/wsn-consumer/wsdl/WS-BaseNotification-1_3.wsdl Tue Aug  1 18:30:25 2006
@@ -289,7 +289,7 @@
 <!-- ========= NotificationConsumer PortType Definition =========== -->
   <wsdl:portType name="NotificationConsumer">
     <wsdl:operation name="Notify">
-      <wsdl:input message="wsntw:Notify" />
+      <wsdl:input wsa:Action="http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest" message="wsntw:Notify" />
     </wsdl:operation>
   </wsdl:portType>
   



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org