You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ch...@apache.org on 2005/12/05 07:04:04 UTC
svn commit: r353994 - in /webservices/sandesha/trunk/samples: conf/interop/
src/sandesha2/samples/interop/ src/sandesha2/samples/simpleServer/
Author: chamikara
Date: Sun Dec 4 22:03:22 2005
New Revision: 353994
URL: http://svn.apache.org/viewcvs?rev=353994&view=rev
Log:
Bat files to easily run the samples.
some modifications to samples
Added:
webservices/sandesha/trunk/samples/conf/interop/AsyncEchoClient.bat
webservices/sandesha/trunk/samples/conf/interop/AsyncPingClient.bat
webservices/sandesha/trunk/samples/conf/interop/SyncEchoClient.bat
webservices/sandesha/trunk/samples/conf/interop/SyncPingClient.bat
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
Added: webservices/sandesha/trunk/samples/conf/interop/AsyncEchoClient.bat
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/interop/AsyncEchoClient.bat?rev=353994&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/interop/AsyncEchoClient.bat (added)
+++ webservices/sandesha/trunk/samples/conf/interop/AsyncEchoClient.bat Sun Dec 4 22:03:22 2005
@@ -0,0 +1,6 @@
+setlocal EnableDelayedExpansion
+set SANDESHA2_CLASS_PATH=.\InteropSampleClients.jar
+FOR %%c in (.\lib\*.jar) DO set SANDESHA2_CLASS_PATH=!SANDESHA2_CLASS_PATH!;%%c
+set SANDESHA2_CLASS_PATH=%SANDESHA2_CLASS_PATH%;.\modules\Sandesha2-0.9.mar
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.interop.AsyncEchoClient .
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/interop/AsyncPingClient.bat
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/interop/AsyncPingClient.bat?rev=353994&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/interop/AsyncPingClient.bat (added)
+++ webservices/sandesha/trunk/samples/conf/interop/AsyncPingClient.bat Sun Dec 4 22:03:22 2005
@@ -0,0 +1,6 @@
+setlocal EnableDelayedExpansion
+set SANDESHA2_CLASS_PATH=.\InteropSampleClients.jar
+FOR %%c in (.\lib\*.jar) DO set SANDESHA2_CLASS_PATH=!SANDESHA2_CLASS_PATH!;%%c
+set SANDESHA2_CLASS_PATH=%SANDESHA2_CLASS_PATH%;.\modules\Sandesha2-0.9.mar
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.interop.AsyncPingClient .
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/interop/SyncEchoClient.bat
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/interop/SyncEchoClient.bat?rev=353994&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/interop/SyncEchoClient.bat (added)
+++ webservices/sandesha/trunk/samples/conf/interop/SyncEchoClient.bat Sun Dec 4 22:03:22 2005
@@ -0,0 +1,6 @@
+setlocal EnableDelayedExpansion
+set SANDESHA2_CLASS_PATH=.\InteropSampleClients.jar
+FOR %%c in (.\lib\*.jar) DO set SANDESHA2_CLASS_PATH=!SANDESHA2_CLASS_PATH!;%%c
+set SANDESHA2_CLASS_PATH=%SANDESHA2_CLASS_PATH%;.\modules\Sandesha2-0.9.mar
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.interop.SyncEchoClient .
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/interop/SyncPingClient.bat
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/interop/SyncPingClient.bat?rev=353994&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/interop/SyncPingClient.bat (added)
+++ webservices/sandesha/trunk/samples/conf/interop/SyncPingClient.bat Sun Dec 4 22:03:22 2005
@@ -0,0 +1,6 @@
+setlocal EnableDelayedExpansion
+set SANDESHA2_CLASS_PATH=.\InteropSampleClients.jar
+FOR %%c in (.\lib\*.jar) DO set SANDESHA2_CLASS_PATH=!SANDESHA2_CLASS_PATH!;%%c
+set SANDESHA2_CLASS_PATH=%SANDESHA2_CLASS_PATH%;.\modules\Sandesha2-0.9.mar
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.interop.SyncPingClient .
\ No newline at end of file
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=353994&r1=353993&r2=353994&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java (original)
+++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java Sun Dec 4 22:03:22 2005
@@ -54,13 +54,14 @@
public static void main(String[] args) throws Exception {
- String sandesha2HomeDir = null;
+
+ String axisClientRepo = null;
if (args!=null && args.length>0)
- sandesha2HomeDir = args[0];
+ axisClientRepo = args[0];
- if (sandesha2HomeDir!=null && !"".equals(sandesha2HomeDir)) {
- SANDESHA2_HOME = sandesha2HomeDir;
- AXIS2_CLIENT_PATH = SANDESHA2_HOME + "\\target\\repos\\client\\";
+ if (axisClientRepo!=null && !"".equals(axisClientRepo)) {
+ AXIS2_CLIENT_PATH = axisClientRepo;
+ SANDESHA2_HOME = "";
}
new AsyncEchoClient ().run();
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=353994&r1=353993&r2=353994&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java (original)
+++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java Sun Dec 4 22:03:22 2005
@@ -50,13 +50,13 @@
public static void main(String[] args) throws AxisFault {
- String sandesha2HomeDir = null;
+ String axisClientRepo = null;
if (args!=null && args.length>0)
- sandesha2HomeDir = args[0];
+ axisClientRepo = args[0];
- if (sandesha2HomeDir!=null && !"".equals(sandesha2HomeDir)) {
- SANDESHA2_HOME = sandesha2HomeDir;
- AXIS2_CLIENT_PATH = SANDESHA2_HOME + "\\target\\repos\\client\\";
+ if (axisClientRepo!=null && !"".equals(axisClientRepo)) {
+ AXIS2_CLIENT_PATH = axisClientRepo;
+ SANDESHA2_HOME = "";
}
new AsyncPingClient().run();
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=353994&r1=353993&r2=353994&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java (original)
+++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java Sun Dec 4 22:03:22 2005
@@ -47,13 +47,13 @@
public static void main(String[] args) throws AxisFault {
- String sandesha2HomeDir = null;
+ String axisClientRepo = null;
if (args!=null && args.length>0)
- sandesha2HomeDir = args[0];
+ axisClientRepo = args[0];
- if (sandesha2HomeDir!=null && !"".equals(sandesha2HomeDir)) {
- SANDESHA2_HOME = sandesha2HomeDir;
- AXIS2_CLIENT_PATH = SANDESHA2_HOME + "\\target\\repos\\client\\";
+ if (axisClientRepo!=null && !"".equals(axisClientRepo)) {
+ AXIS2_CLIENT_PATH = axisClientRepo;
+ SANDESHA2_HOME = "";
}
new SyncEchoClient().run();
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=353994&r1=353993&r2=353994&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java (original)
+++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java Sun Dec 4 22:03:22 2005
@@ -44,13 +44,13 @@
public static void main(String[] args) throws AxisFault {
- String sandesha2HomeDir = null;
+ String axisClientRepo = null;
if (args!=null && args.length>0)
- sandesha2HomeDir = args[0];
+ axisClientRepo = args[0];
- if (sandesha2HomeDir!=null && !"".equals(sandesha2HomeDir)) {
- SANDESHA2_HOME = sandesha2HomeDir;
- AXIS2_CLIENT_PATH = SANDESHA2_HOME + "\\target\\repos\\client\\";
+ if (axisClientRepo!=null && !"".equals(axisClientRepo)) {
+ AXIS2_CLIENT_PATH = axisClientRepo;
+ SANDESHA2_HOME = "";
}
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=353994&r1=353993&r2=353994&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java (original)
+++ webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java Sun Dec 4 22:03:22 2005
@@ -26,12 +26,15 @@
private static String AXIS2_SERVER_PATH = SANDESHA2_HOME + "\\target\\repos\\server\\"; //this will be available after a maven build
public static void main(String[] args) throws AxisFault {
- String sandesha2HomeDir = null;
+
+
+ String axisServerRepo = null;
if (args!=null && args.length>0)
- sandesha2HomeDir = args[0];
+ axisServerRepo = args[0];
- if (sandesha2HomeDir!=null && !"".equals(sandesha2HomeDir))
- SANDESHA2_HOME = sandesha2HomeDir;
+ if (axisServerRepo!=null && !"".equals(axisServerRepo)) {
+ AXIS2_SERVER_PATH = axisServerRepo;
+ }
if ("<SANDESHA2_HOME>".equals(SANDESHA2_HOME)){
System.out.println("ERROR: Please change <SANDESHA2_HOME> to your Sandesha2 installation directory.");
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org