Author: chamikara
Date: Mon Jan 30 22:13:06 2006
New Revision: 373735

URL: http://svn.apache.org/viewcvs?rev=373735&view=rev
Log:
Updated samples

Modified:
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java?rev=373735&r1=373734&r2=373735&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
 Mon Jan 30 22:13:06 2006
@@ -16,6 +16,8 @@
 
 package sandesha2.samples.interop;
 
+import java.io.File;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.Constants;
@@ -54,7 +56,7 @@
        
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
-       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
"\\target\\repos\\client\\";   //this will be available after a maven build
+       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
File.separator + "target" + File.separator +"repos" + File.separator + "client" 
+ File.separator;   //this will be available after a maven build
        
        public static void main(String[] args) throws Exception {
                
@@ -97,7 +99,7 @@
                clientOptions.setUseSeparateListener(true);
                
                serviceClient.setOptions(clientOptions);
-               serviceClient.engageModule(new QName ("Sandesha2-0.9"));
+               serviceClient.engageModule(new QName ("sandesha2"));
                
//clientOptions.setProperty(MessageContextConstants.CHUNKED,Constants.VALUE_FALSE);
                
//clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
                String offeredSequenceID = SandeshaUtil.getUUID();

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java?rev=373735&r1=373734&r2=373735&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
 Mon Jan 30 22:13:06 2006
@@ -16,15 +16,19 @@
 
 package sandesha2.samples.interop;
 
+import java.io.File;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
+import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.MessageSender;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.ServiceClient;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.context.MessageContextConstants;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.om.OMElement;
@@ -49,7 +53,7 @@
        
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
-       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
"\\target\\repos\\client\\";   //this will be available after a maven build
+       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
File.separator + "target" + File.separator +"repos" + File.separator + "client" 
+ File.separator;   //this will be available after a maven build
        
        public static void main(String[] args) throws AxisFault {
                
@@ -81,10 +85,11 @@
                clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean 
(true));
                clientOptions.setTo(new EndpointReference (toEPR));
                clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR);
+               clientOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP);
                
clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
                
                serviceClient.setOptions(clientOptions);
-               serviceClient.engageModule(new QName ("Sandesha2-0.9"));
+               serviceClient.engageModule(new QName ("sandesha2"));
                
                serviceClient.fireAndForget(getPingOMBlock("ping1"));
                serviceClient.fireAndForget(getPingOMBlock("ping2"));

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java?rev=373735&r1=373734&r2=373735&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java
 Mon Jan 30 22:13:06 2006
@@ -16,6 +16,8 @@
 
 package sandesha2.samples.interop;
 
+import java.io.File;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
@@ -50,7 +52,7 @@
 
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
-       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
"\\target\\repos\\client\\";   //this will be available after a maven build
+       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
File.separator + "target" + File.separator +"repos" + File.separator + "client" 
+ File.separator;   //this will be available after a maven build
        
        public static void main(String[] args) throws Exception {
                
@@ -89,7 +91,7 @@
                clientOptions.setUseSeparateListener(true);
                
                serviceClient.setOptions(clientOptions);
-               serviceClient.engageModule(new QName ("Sandesha2-0.9"));
+               serviceClient.engageModule(new QName ("sandesha2"));
                
                String offeredSequenceID = SandeshaUtil.getUUID();
                
clientOptions.setProperty(Sandesha2ClientAPI.OFFERED_SEQUENCE_ID,offeredSequenceID);
  //Optional

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java?rev=373735&r1=373734&r2=373735&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
 Mon Jan 30 22:13:06 2006
@@ -16,6 +16,8 @@
 
 package sandesha2.samples.interop;
 
+import java.io.File;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
@@ -50,7 +52,7 @@
        
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
-       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
"\\target\\repos\\client\\";   //this will be available after a maven build
+       private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
File.separator + "target" + File.separator +"repos" + File.separator + "client" 
+ File.separator;   //this will be available after a maven build
        
        public static void main(String[] args) throws AxisFault {
                
@@ -88,7 +90,7 @@
                ServiceClient serviceClient = new ServiceClient 
(configContext,null);
                //serviceClient.
                
-               serviceClient.engageModule(new QName ("Sandesha2-0.9"));
+               serviceClient.engageModule(new QName ("sandesha2"));
                serviceClient.setOptions(clientOptions);
                
                serviceClient.fireAndForget(getPingOMBlock("ping1"));

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java?rev=373735&r1=373734&r2=373735&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java
 Mon Jan 30 22:13:06 2006
@@ -16,6 +16,8 @@
 
 package sandesha2.samples.simpleServer;
 
+import java.io.File;
+
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.transport.http.SimpleHTTPServer;
 
@@ -23,7 +25,7 @@
 
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
-       private static String AXIS2_SERVER_PATH = SANDESHA2_HOME + 
"\\target\\repos\\server\\";   //this will be available after a maven build
+       private static String AXIS2_SERVER_PATH = SANDESHA2_HOME + 
File.separator + "target" + File.separator +"repos" + File.separator + "server" 
+ File.separator;   //this will be available after a maven build
        
        public static void main(String[] args) throws AxisFault {
 



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

Reply via email to