Author: chamikara
Date: Mon Jun  4 11:19:06 2007
New Revision: 544196

URL: http://svn.apache.org/viewvc?view=rev&rev=544196
Log:
Corrected the userguide sample

Modified:
    
webservices/sandesha/branches/sandesha2/java/1_2/modules/core/src/main/resources/org/apache/sandesha2/i18n/resource.properties
    
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/AsyncPingClient.java
    
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/SyncPingClient.java
    
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/UserguidePingClient.java
    
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/resources/userguide/userguide_sample.html

Modified: 
webservices/sandesha/branches/sandesha2/java/1_2/modules/core/src/main/resources/org/apache/sandesha2/i18n/resource.properties
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_2/modules/core/src/main/resources/org/apache/sandesha2/i18n/resource.properties?view=diff&rev=544196&r1=544195&r2=544196
==============================================================================
--- 
webservices/sandesha/branches/sandesha2/java/1_2/modules/core/src/main/resources/org/apache/sandesha2/i18n/resource.properties
 (original)
+++ 
webservices/sandesha/branches/sandesha2/java/1_2/modules/core/src/main/resources/org/apache/sandesha2/i18n/resource.properties
 Mon Jun  4 11:19:06 2007
@@ -239,7 +239,7 @@
 referencedMessageNotFound = Reference message is not present for the sequence 
with property key {0}
 createSequenceRefused=The Create Sequence request has been refused by the RM 
Destination
 messageNumberRollover=The maximum value for wsrm:MessageNumber has been 
exceeded.
-sequenceTerminatedFault=The Sequence has been terminated due to an 
unrecoverable error.
+sequenceTerminatedFault=The accessed Sequence  ( ID - {0} ) has been terminated
 unknownSequenceFault=The value of wsrm:Identifier is not a known Sequence 
identifier.
 invalidAckFault=The SequenceAcknowledgement violates the cumulative 
Acknowledgement invariant.
 cannotAcceptMsgAsSequenceClosedFault=The Sequence is closed and can not accept 
new messages. 

Modified: 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/AsyncPingClient.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/AsyncPingClient.java?view=diff&rev=544196&r1=544195&r2=544196
==============================================================================
--- 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/AsyncPingClient.java
 (original)
+++ 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/AsyncPingClient.java
 Mon Jun  4 11:19:06 2007
@@ -117,6 +117,13 @@
                        }
                }
                
+               try {
+                       Thread.sleep(4000);
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               
                configContext.terminate();
                serviceClient.cleanup();
        }

Modified: 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/SyncPingClient.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/SyncPingClient.java?view=diff&rev=544196&r1=544195&r2=544196
==============================================================================
--- 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/SyncPingClient.java
 (original)
+++ 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/SyncPingClient.java
 Mon Jun  4 11:19:06 2007
@@ -18,6 +18,8 @@
 
 import java.io.File;
 
+import javax.xml.namespace.QName;
+
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
@@ -124,6 +126,13 @@
                        }
                }
                
+               try {
+                       Thread.sleep(4000);
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               
                configContext.terminate();
                serviceClient.cleanup();
        }
@@ -149,6 +158,12 @@
                public void onTimeOut(SequenceReport report) {
                        System.out.println("Sequence timed out");
                }       
+       }
+       
+       private OMElement getCustomHeader () {
+               OMFactory fac = OMAbstractFactory.getOMFactory();
+               OMElement elem = fac.createOMElement(new QName 
("http://testns/","testElem";));
+               return elem;
        }
        
 }

Modified: 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/UserguidePingClient.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/UserguidePingClient.java?view=diff&rev=544196&r1=544195&r2=544196
==============================================================================
--- 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/UserguidePingClient.java
 (original)
+++ 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/java/sandesha2/samples/userguide/UserguidePingClient.java
 Mon Jun  4 11:19:06 2007
@@ -58,6 +58,13 @@
                clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, 
"true");
                serviceClient.fireAndForget(getPingOMBlock("ping3"));
                
+               try {
+                       Thread.sleep(4000);
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               
                configContext.terminate();
                serviceClient.cleanup();
        }

Modified: 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/resources/userguide/userguide_sample.html
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/resources/userguide/userguide_sample.html?view=diff&rev=544196&r1=544195&r2=544196
==============================================================================
--- 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/resources/userguide/userguide_sample.html
 (original)
+++ 
webservices/sandesha/branches/sandesha2/java/1_2/modules/samples/src/main/resources/userguide/userguide_sample.html
 Mon Jun  4 11:19:06 2007
@@ -22,6 +22,9 @@
 <p>Add the Sandesha2 module to the &lt;AXIS2_WEBAPP&gt;\WEB-INF\modules
 directory.</p>
 
+<p>Add the Sandesha2 policy jar file to the &lt;AXIS2_WEBAPP&gt;\WEB-INF\lib
+directory.</p>
+
 <p>Start tomcat.</p>
 
 <h2>Setting up the client</h2>
@@ -33,6 +36,9 @@
 binary distrubution to the samples\clients\lib directory.</p>
 
 <p>Add the Sandesha2 jar file that comes with the binary distribution to the
+samples\clients\lib directory.</p>
+
+<p>Add the Sandesha2 policy jar file that comes with the binary distribution 
to the
 samples\clients\lib directory.</p>
 
 <p>Add the addressing module file that comes with Apache Axis2 to the



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to