Commit 782b1095 authored by Philippe Merle's avatar Philippe Merle

Added a profile to run all examples with FraSCAti Explorer.

Updated README.txt files to document this feature.
Updated pom files to remove the dependency which is already contained by the root parent pom file.
Cosmetic updates (typo).
parent 27c1d1c0
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti Calculator example: FraSCAti Calculator example:
...@@ -37,12 +39,15 @@ Execution with Maven: ...@@ -37,12 +39,15 @@ Execution with Maven:
--------------------- ---------------------
1) Open a console for the server 1) Open a console for the server
cd server cd server
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
2) Open another console for the client 2) Open another console for the client
cd client cd client
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti scripts: Compilation and execution with the FraSCAti script:
---------------------------------------------------- ---------------------------------------------------
1) Open a console and follow instructions in the 'server' directory 1) Open a console and follow instructions in the 'server' directory
2) Open another console and follow instructions in the 'client' directory 2) Open another console and follow instructions in the 'client' directory
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti Calculator Client example: FraSCAti Calculator Client example:
...@@ -27,8 +29,17 @@ FraSCAti Calculator Client example: ...@@ -27,8 +29,17 @@ FraSCAti Calculator Client example:
This example shows how to consume the Calculator web service exposed by the This example shows how to consume the Calculator web service exposed by the
Calculator Server example from FraSCAti. Calculator Server example from FraSCAti.
Compilation and execution with the FraSCAti scripts: Compilation with Maven:
---------------------------------------------------- -----------------------
mvn install
Execution with Maven:
---------------------
mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti script:
---------------------------------------------------
frascati wsdl2java -f src/main/wsdl/Calculator.wsdl -o src/main/java frascati wsdl2java -f src/main/wsdl/Calculator.wsdl -o src/main/java
frascati compile src calculator-client frascati compile src calculator-client
frascati run calc-client -libpath calculator-client.jar -s calc -m add -p 1 2 frascati run calc-client -libpath calculator-client.jar -s calc -m add -p 1 2
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* Author: Nicolas Dolet * Author: Nicolas Dolet
* *
* Contributor(s): * Contributor(s): Philippe Merle
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -61,12 +61,4 @@ ...@@ -61,12 +61,4 @@
</plugins> </plugins>
</build> </build>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti Calculator Server example: FraSCAti Calculator Server example:
...@@ -26,7 +28,16 @@ FraSCAti Calculator Server example: ...@@ -26,7 +28,16 @@ FraSCAti Calculator Server example:
This example shows how to expose a web service (Calculator) with FraSCAti. This example shows how to expose a web service (Calculator) with FraSCAti.
Compilation and execution with the FraSCAti scripts: (for the server) Compilation with Maven:
---------------------------------------------------- -----------------------
mvn install
Execution with Maven:
---------------------
mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti script:
---------------------------------------------------
frascati compile src calculator-server frascati compile src calculator-server
frascati run soap-calc -libpath calculator-server.jar frascati run soap-calc -libpath calculator-server.jar
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* Author: Nicolas Dolet * Author: Nicolas Dolet
* *
* Contributor(s): * Contributor(s): Philippe Merle
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -50,12 +50,4 @@ ...@@ -50,12 +50,4 @@
<method.params>''</method.params> <method.params>''</method.params>
</properties> </properties>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
============================================================================ ============================================================================
OW2 FraSCAti Examples: Counter OW2 FraSCAti Examples: RESTful Counter
Copyright (C) 2009 INRIA, USTL Copyright (C) 2009 INRIA, USTL
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
...@@ -19,14 +19,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,14 +19,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti RESTful Counter example: FraSCAti RESTful Counter example:
--------------------------------- ---------------------------------
This example shows how to expose and how to consume a RESTful service with This example shows how to expose and how to consume a RESTful service with
FraSCAti. FraSCAti. This module gathers the server and the client.
This module gathers the server and the client.
To run the example, open two terminals (for the server and for the client). To run the example, open two terminals (for the server and for the client).
...@@ -38,12 +39,15 @@ Execution with Maven: ...@@ -38,12 +39,15 @@ Execution with Maven:
--------------------- ---------------------
1) Open a console for the server 1) Open a console for the server
cd server cd server
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
2) Open another console for the client 2) Open another console for the client
cd client cd client
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti scripts: Compilation and execution with the FraSCAti script:
---------------------------------------------------- ---------------------------------------------------
1) Open a console and follow instructions in the 'server' directory 1) Open a console and follow instructions in the 'server' directory
2) Open another console and follow instructions in the 'client' directory 2) Open another console and follow instructions in the 'client' directory
============================================================================ ============================================================================
OW2 FraSCAti Examples: Counter OW2 FraSCAti Examples: RESTful Counter Client
Copyright (C) 2009 INRIA, USTL Copyright (C) 2009 INRIA, USTL
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti RESTful Counter example: FraSCAti RESTful Counter example:
...@@ -27,7 +29,16 @@ FraSCAti RESTful Counter example: ...@@ -27,7 +29,16 @@ FraSCAti RESTful Counter example:
This example shows how to consume the RESTful "CounterService" service exposed This example shows how to consume the RESTful "CounterService" service exposed
by the Counter Server example from FraSCAti. by the Counter Server example from FraSCAti.
Compilation and execution with the FraSCAti scripts: Compilation with Maven:
---------------------------------------------------- -----------------------
mvn install
Execution with Maven:
---------------------
mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti script:
---------------------------------------------------
frascati compile src counter-client frascati compile src counter-client
frascati run counter-client -libpath counter-client.jar -s r -m run frascati run counter-client -libpath counter-client.jar -s r -m run
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
* OW2 FraSCAti Examples: Counter * OW2 FraSCAti Examples: RESTful Counter Client
* *
* Copyright (c) 2009 INRIA, USTL * Copyright (c) 2009 INRIA, USTL
* *
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* Author: Nicolas Dolet * Author: Nicolas Dolet
* *
* Contributor(s): * Contributor(s): Philippe Merle
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -50,12 +50,4 @@ ...@@ -50,12 +50,4 @@
<method.params>' '</method.params> <method.params>' '</method.params>
</properties> </properties>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
* OW2 FraSCAti Examples: Counter * OW2 FraSCAti Examples: RESTful Counter
* *
* Copyright (c) 2009 INRIA, USTL * Copyright (c) 2009 INRIA, USTL
* *
......
============================================================================ ============================================================================
OW2 FraSCAti Examples: Counter OW2 FraSCAti Examples: RESTful Counter Server
Copyright (C) 2009 INRIA, USTL Copyright (C) 2009 INRIA, USTL
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
FraSCAti RESTful Counter example: FraSCAti RESTful Counter example:
...@@ -27,7 +29,16 @@ FraSCAti RESTful Counter example: ...@@ -27,7 +29,16 @@ FraSCAti RESTful Counter example:
This example shows how to expose a RESTful service (CounterService) with This example shows how to expose a RESTful service (CounterService) with
FraSCAti. FraSCAti.
Compilation and execution with the FraSCAti scripts: Compilation with Maven:
---------------------------------------------------- -----------------------
mvn install
Execution with Maven:
---------------------
mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti script:
---------------------------------------------------
frascati compile src counter-server frascati compile src counter-server
frascati run counter-server -libpath counter-server.jar frascati run counter-server -libpath counter-server.jar
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
* OW2 FraSCAti Examples: Counter * OW2 FraSCAti Examples: RESTful Counter Server
* *
* Copyright (c) 2009 INRIA, USTL * Copyright (c) 2009 INRIA, USTL
* *
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* Author: Nicolas Dolet * Author: Nicolas Dolet
* *
* Contributor(s): * Contributor(s): Philippe Merle
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -50,12 +50,4 @@ ...@@ -50,12 +50,4 @@
<method.params>''</method.params> <method.params>''</method.params>
</properties> </properties>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
Dictionary Web Service Client: Dictionary Web Service Client:
...@@ -34,10 +36,11 @@ Compilation with Maven: ...@@ -34,10 +36,11 @@ Compilation with Maven:
Execution with Maven: Execution with Maven:
--------------------- ---------------------
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti scripts: Compilation and execution with the FraSCAti script:
---------------------------------------------------- ---------------------------------------------------
frascati wsdl2java -f src/main/wsdl/DictService.wsdl -o src/main/java frascati wsdl2java -f src/main/wsdl/DictService.wsdl -o src/main/java
frascati compile src dictionary frascati compile src dictionary
frascati run dictionary -libpath dictionary.jar -s Dictionary -m definition -p computer frascati run dictionary -libpath dictionary.jar -s Dictionary -m definition -p computer
...@@ -61,12 +61,4 @@ ...@@ -61,12 +61,4 @@
</plugins> </plugins>
</build> </build>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
...@@ -19,14 +19,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,14 +19,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
Helloworld with SCA Java Annotations / Web Service bindings: HelloWorld with SCA Java Annotations:
------------------------------------------------------------ -------------------------------------
This example shows how to use annotations on the helloworld-pojo example. This example shows how to use annotations on the helloworld-pojo example.
It also includes another composite: helloworld-ws that shows the usage of
the Web Service binding.
Compilation with Maven: Compilation with Maven:
...@@ -35,10 +35,10 @@ Compilation with Maven: ...@@ -35,10 +35,10 @@ Compilation with Maven:
Execution with Maven: Execution with Maven:
--------------------- ---------------------
mvn -Prun mvn -Prun (standalone execution)
edit the pom.xml descriptor to change the composite name mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti scripts: Compilation and execution with the FraSCAti script:
---------------------------------------------------- ---------------------------------------------------
frascati compile src helloworld-annotations frascati compile src helloworld-annotations
frascati run helloworld-wired -libpath helloworld-annotations.jar -s r -m run frascati run helloworld-wired -libpath helloworld-annotations.jar -s r -m run
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<version>1.1-SNAPSHOT</version> <version>1.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Helloworld annotated</name> <name>OW2 FraSCAti Examples: HelloWorld annotated</name>
<parent> <parent>
<groupId>org.ow2.frascati.examples</groupId> <groupId>org.ow2.frascati.examples</groupId>
...@@ -49,12 +49,4 @@ ...@@ -49,12 +49,4 @@
<method.params>' '</method.params> <method.params>' '</method.params>
</properties> </properties>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project> </project>
...@@ -19,9 +19,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -19,9 +19,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati@ow2.org Contact: frascati@ow2.org
Author: Nicolas Dolet Author: Nicolas Dolet
Contributor: Philippe Merle
============================================================================ ============================================================================
Helloworld POJO example: HelloWorld POJO example:
------------------------ ------------------------
This example shows how to build an SCA application with two POJOs: a client POJO This example shows how to build an SCA application with two POJOs: a client POJO
...@@ -35,9 +37,10 @@ Compilation with Maven: ...@@ -35,9 +37,10 @@ Compilation with Maven:
Execution with Maven: Execution with Maven:
--------------------- ---------------------
mvn -Prun mvn -Prun (standalone execution)
mvn -Pexplorer (with FraSCAti Explorer)
Compilation and execution with the FraSCAti scripts: Compilation and execution with the FraSCAti script:
---------------------------------------------------- ---------------------------------------------------
frascati compile src helloworld-pojo frascati compile src helloworld-pojo
frascati run helloworld-pojo -libpath helloworld-pojo.jar -s r -m run frascati run helloworld-pojo -libpath helloworld-pojo.jar -s r -m run
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* Author: Nicolas Dolet * Author: Nicolas Dolet
* *
* Contributor(s): * Contributor(s): Philippe Merle
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<version>1.1-SNAPSHOT</version> <version>1.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>OW2 FraSCAti Examples: Helloworld POJO</name> <name>OW2 FraSCAti Examples: HelloWorld POJO</name>
<parent> <parent>
<groupId>org.ow2.frascati.examples</groupId> <groupId>org.ow2.frascati.examples</groupId>
...@@ -48,13 +48,5 @@ ...@@ -48,13 +48,5 @@
<method.name>run</method.name> <method.name>run</method.name>