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/12/10 17:38:46 UTC

svn commit: r485213 - in /webservices/muse/site/docs/2.1.0: manual/how-to/receive-any-notification.html tutorial/08-test-client.html

Author: danj
Date: Sun Dec 10 08:38:45 2006
New Revision: 485213

URL: http://svn.apache.org/viewvc?view=rev&rev=485213
Log:
Cleaning up test client code and adding reference to mini project client usage.

Modified:
    webservices/muse/site/docs/2.1.0/manual/how-to/receive-any-notification.html
    webservices/muse/site/docs/2.1.0/tutorial/08-test-client.html

Modified: webservices/muse/site/docs/2.1.0/manual/how-to/receive-any-notification.html
URL: http://svn.apache.org/viewvc/webservices/muse/site/docs/2.1.0/manual/how-to/receive-any-notification.html?view=diff&rev=485213&r1=485212&r2=485213
==============================================================================
--- webservices/muse/site/docs/2.1.0/manual/how-to/receive-any-notification.html (original)
+++ webservices/muse/site/docs/2.1.0/manual/how-to/receive-any-notification.html Sun Dec 10 08:38:45 2006
@@ -150,6 +150,7 @@
 import org.apache.muse.ws.notification.NotificationMessage;<br/>
 import org.apache.muse.ws.notification.NotificationMessageListener;<br/>
 import org.apache.muse.ws.notification.WsnConstants;<br/>
+import org.apache.muse.ws.notification.impl.TopicFilter;<br/>
 import org.apache.muse.ws.notification.remote.NotificationProducerClient;<br/>
 <br/>
 public class MyCapability extends AbstractCapability<br/>
@@ -168,7 +169,7 @@
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EndpointReference myEPR = getResource().getEndpointReference();<br/>
 		<br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NotificationProducerClient producer = new NotificationProducerClient(, myEPR);<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;producer.subscribe(myEPR, topicName);<br/>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;producer.subscribe(myEPR, new TopicFilter(topicName), null);<br/>
 		<br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Step 2: create a listener for the topic we're interested in<br/>

Modified: webservices/muse/site/docs/2.1.0/tutorial/08-test-client.html
URL: http://svn.apache.org/viewvc/webservices/muse/site/docs/2.1.0/tutorial/08-test-client.html?view=diff&rev=485213&r1=485212&r2=485213
==============================================================================
--- webservices/muse/site/docs/2.1.0/tutorial/08-test-client.html (original)
+++ webservices/muse/site/docs/2.1.0/tutorial/08-test-client.html Sun Dec 10 08:38:45 2006
@@ -115,20 +115,21 @@
         <pre>
     public static void main(String[] args) {
         try {
-            // insert your endpoint's URI here
-            URI uri = URI.create("http://...");
-            EndpointReference epr = new EndpointReference(uri);
+            <b>// insert your endpoint URIs here</b>
+            URI producerURI = URI.create("http://...");
+            URI consumerURI = URI.create("http://...");
+            
+            EndpointReference epr = new EndpointReference(producerURI);
 
             MyServiceProxy proxy = new MyServiceProxy(epr);
 
-            // optional, but useful
+            <b>// optional, but useful</b>
             proxy.setTrace(true);
 
-            // get the ServerName resourceproperty
+            <b>// get the ServerName property</b>
             String serverName = proxy.getServerName();
 
-            // invoke the WSN Subscribe operation
-            URI consumerURI = URI.create("http://...");
+            <b>// invoke the WSN Subscribe operation</b>
             EndpointReference consumer = new EndpointReference(consumerURI);
             proxy.subscribe(consumer, null, null);
             
@@ -142,13 +143,13 @@
     the <em>wsdl2java</em> tooling, a default resource is created when the endpoint is deployed. The URI to this resource is as follows.
     </p>
     <p>
-    For Axis2 on J2EE:
+    For J2EE applications (Axis2 or Mini):
     <blockquote>
     <ul>
         <li>Hostname: <code>http://localhost:PORT</code> where PORT is replaced with your J2EE container port.</li>
         <li>WAR path: this is the name of the WAR file that you deployed.</li>
-        <li>Resource path: <code>services/NAME</code> where NAME is the name of the generated service. This is the name of a directory
-        under <b>/WebContent/WEB-INF/services/muse/router-entries</b>.</li>
+        <li>Resource path: <code>services/NAME</code> where NAME is the name of the generated service. This is the value specified 
+        in muse.xml's &lt;context-path/&gt; element.</li>
     </ul>
     </blockquote>
     For example, if the PORT is 8080, the name of the WAR file is myWar.war and the name of the service is MyService. The URI would be:
@@ -162,8 +163,8 @@
     <ul>
         <li>Hostname: <code>http://localhost:PORT</code> where PORT is replaced with your OSGi HTTP service port.</li>
         <li>Bundle path: this is the name of the bundle.</li>
-        <li>Resource path: <code>NAME</code> where NAME is the name of the generated service. This is the name of a directory
-        under <b>/router-entries</b>.</li>
+        <li>Resource path: <code>NAME</code> where NAME is the name of the generated service. This is the value specified 
+        in muse.xml's &lt;context-path/&gt; element.</li>
     </ul>
     </blockquote>
     For example, if the PORT is 80, the name of the WAR file is myBundle and the name of the service is MyService. The URI would be:
@@ -171,7 +172,7 @@
         <code>http://localhost:80/myBundle/MyService</code>
     </blockquote>
     </p>
-    <p>Finally the <em>setTrace()</em> call will print all of the outgoing and incoming messages to standard output. This is extremely useful
+    <p>Finally, the <em>setTrace()</em> call will print all of the outgoing and incoming messages to standard output. This is extremely useful
     when developing your endpoints. This operation is available on all generated clients, but the other methods will be specific to your
     endpoint.</p>
 <p>



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