You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by hi...@apache.org on 2010/11/27 03:59:37 UTC
svn commit: r1039608 - in /synapse/trunk/scratch/hiranya/website: ./ src/
src/site/ src/site/resources/ src/site/resources/css/ src/site/xdoc/
src/site/xdoc/userguide/
Author: hiranya
Date: Sat Nov 27 02:59:36 2010
New Revision: 1039608
URL: http://svn.apache.org/viewvc?rev=1039608&view=rev
Log:
New home page and QS
Added:
synapse/trunk/scratch/hiranya/website/pom.xml
synapse/trunk/scratch/hiranya/website/src/
synapse/trunk/scratch/hiranya/website/src/site/
synapse/trunk/scratch/hiranya/website/src/site/resources/
synapse/trunk/scratch/hiranya/website/src/site/resources/css/
synapse/trunk/scratch/hiranya/website/src/site/resources/css/site.css
synapse/trunk/scratch/hiranya/website/src/site/site.xml
synapse/trunk/scratch/hiranya/website/src/site/xdoc/
synapse/trunk/scratch/hiranya/website/src/site/xdoc/index.xml
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/quick_start.xml
Added: synapse/trunk/scratch/hiranya/website/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/pom.xml?rev=1039608&view=auto
==============================================================================
--- synapse/trunk/scratch/hiranya/website/pom.xml (added)
+++ synapse/trunk/scratch/hiranya/website/pom.xml Sat Nov 27 02:59:36 2010
@@ -0,0 +1,1035 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>7</version>
+ </parent>
+
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>Apache-Synapse</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+
+ <name>Apache Synapse</name>
+ <description>Apache Synapse</description>
+
+ <packaging>pom</packaging>
+ <url>http://synapse.apache.org/</url>
+
+ <issueManagement>
+ <url>http://issues.apache.org/jira/browse/SYNAPSE</url>
+ </issueManagement>
+
+ <mailingLists>
+ <mailingList>
+ <name>Apache Synapse Developer List</name>
+ <subscribe>dev-subscribe@synapse.apache.org</subscribe>
+ <unsubscribe>dev-unsubscribe@synapse.apache.org</unsubscribe>
+ <post>dev@synapse.apache.org</post>
+ <archive>http://mail-archives.apache.org/mod_mbox/ws-synapse-dev/</archive>
+ </mailingList>
+ <mailingList>
+ <name>Apache Synapse User List</name>
+ <subscribe>user-subscribe@synapse.apache.org</subscribe>
+ <unsubscribe>user-unsubscribe@synapse.apache.org</unsubscribe>
+ <post>user@synapse.apache.org</post>
+ <archive>http://mail-archives.apache.org/mod_mbox/ws-synapse-user/</archive>
+ </mailingList>
+ </mailingLists>
+
+ <inceptionYear>2005</inceptionYear>
+
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/synapse/trunk/java
+ </connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/synapse/trunk/java
+ </developerConnection>
+ <url>http://svn.apache.org/viewvc/synapse/trunk/java/</url>
+ </scm>
+
+ <organization>
+ <name>Apache Software Foundation</name>
+ <url>http://www.apache.org/</url>
+ </organization>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <attach>true</attach>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <property>
+ <name>release</name>
+ </property>
+ </activation>
+ </profile>
+ <profile>
+ <id>hudson</id>
+ <activation>
+ <property>
+ <name>hudson</name>
+ </property>
+ </activation>
+ <repositories>
+ <repository>
+ <id>apache-snapshots</id>
+ <name>Apache Maven 2 Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <updatePolicy>interval:60</updatePolicy>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>wso2-m2</id>
+ <name>WSO2 Maven 2 Repository</name>
+ <url>http://dist.wso2.org/maven2/</url>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>wso2-m2-snapshots</id>
+ <name>WSO2 Maven 2 SNAPSHOTS Repository</name>
+ <url>http://dist.wso2.org/snapshots/maven2/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>interval:60</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache-snapshots</id>
+ <name>Apache Snapshot repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-6</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <argLine>-Xms128m -Xmx256m</argLine>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Extension-Name>${pom.groupId}</Extension-Name>
+ <Specification-Title>${pom.artifactId}</Specification-Title>
+ <Specification-Vendor>Apache Software Foundation</Specification-Vendor>
+ <Specification-Version>${pom.version}</Specification-Version>
+ <Implementation-Title>Apache Synapse</Implementation-Title>
+ <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
+ <Implementation-Vendor>Apache Software Foundation</Implementation-Vendor>
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <dependencyManagement>
+ <dependencies>
+ <!-- Synapse -->
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-securevault</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-commons</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-tasks</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-extensions</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-samples</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-nhttp-transport</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.synapse</groupId>
+ <artifactId>synapse-vfs-transport</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Axis2 -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-kernel</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-http</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-local</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-base</artifactId>
+ <version>${axis2.transport.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-jms</artifactId>
+ <version>${axis2.transport.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-mail</artifactId>
+ <version>${axis2.transport.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-adb</artifactId>
+ <version>${axis2.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-activation_1.1_spec</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-clustering</artifactId>
+ <version>${axis2.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-kernel</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-codegen</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-saaj</artifactId>
+ <version>${axis2.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-javamail_1.4_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-activation_1.1_spec</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-mtompolicy</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>mex</artifactId>
+ <version>${axis2.version}</version>
+ <classifier>impl</classifier>
+ </dependency>
+
+ <!-- Rampart -->
+ <dependency>
+ <groupId>org.apache.rampart</groupId>
+ <artifactId>rampart-policy</artifactId>
+ <version>${rampart.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>log4j-over-slf4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.woden</groupId>
+ <artifactId>woden-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.xmlbeans</groupId>
+ <artifactId>xmlbeans</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.rampart</groupId>
+ <artifactId>rampart-trust</artifactId>
+ <version>${rampart.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.woden</groupId>
+ <artifactId>woden-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.rampart</groupId>
+ <artifactId>rampart-core</artifactId>
+ <version>${rampart.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.woden</groupId>
+ <artifactId>woden-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-api</artifactId>
+ <version>${axiom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-impl</artifactId>
+ <version>${axiom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-dom</artifactId>
+ <version>${axiom.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.commons.schema</groupId>
+ <artifactId>XmlSchema</artifactId>
+ <version>${xml_schema.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ <version>${xml_apis.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.neethi</groupId>
+ <artifactId>neethi</artifactId>
+ <version>${neethi.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.sandesha2</groupId>
+ <artifactId>sandesha2-core</artifactId>
+ <version>${sandesha2.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ <version>${commons.dbcp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-pool</groupId>
+ <artifactId>commons-pool</artifactId>
+ <version>${commons.pool.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4j.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.wso2.eventing</groupId>
+ <artifactId>wso2eventing-api</artifactId>
+ <version>${wso2eventing-api.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ <version>${jline.version}</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-local</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+
+ <!-- Axis2 -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-kernel</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-adb</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-clustering</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-mtompolicy</artifactId>
+ </dependency>
+
+ <!-- Neethi -->
+ <dependency>
+ <groupId>org.apache.neethi</groupId>
+ <artifactId>neethi</artifactId>
+ </dependency>
+
+ <!-- Sandesha2 -->
+ <dependency>
+ <groupId>org.apache.sandesha2</groupId>
+ <artifactId>sandesha2-core</artifactId>
+ <version>${sandesha2.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <!-- direct dependencies for 3rd party JARs / Util JARs -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>logkit</groupId>
+ <artifactId>logkit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!--dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency-->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>${xmlunit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>${derby.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>${xalan.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>${xerces.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>rhino</groupId>
+ <artifactId>js</artifactId>
+ <version>${js.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ <version>${commons.dbcp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-pool</groupId>
+ <artifactId>commons-pool</artifactId>
+ <version>${commons.pool.version}</version>
+ </dependency>
+
+ <!-- dependencies for xsltc in xalan -->
+ <dependency>
+ <groupId>org.apache.bcel</groupId>
+ <artifactId>bcel</artifactId>
+ <version>${bcel.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>jakarta-regexp</groupId>
+ <artifactId>jakarta-regexp</artifactId>
+ <version>${regexp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>java-cup</groupId>
+ <artifactId>java-cup</artifactId>
+ <version>${java-cup.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>JLex</groupId>
+ <artifactId>JLex</artifactId>
+ <version>${JLex.version}</version>
+ </dependency>
+
+ <!--dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>${commons-collections.version}</version>
+ </dependency-->
+ <!-- task scheduling -->
+ <dependency>
+ <groupId>org.opensymphony</groupId>
+ <artifactId>quartz</artifactId>
+ <version>${quartz.version}</version>
+ </dependency>
+
+ <!-- Saxon Dependency - is not a direct dependency, but optional runtime -->
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <version>${saxon.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-dom</artifactId>
+ <version>${saxon.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-xqj</artifactId>
+ <version>${saxon.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>${commons-cli.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>${commons-lang.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- Caching dependencies -->
+ <dependency>
+ <groupId>org.wso2.caching</groupId>
+ <artifactId>wso2caching-core</artifactId>
+ <version>${wso2caching.version}</version>
+ <type>jar</type>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <!-- Eventing dependencies-->
+ <dependency>
+ <groupId>org.wso2.eventing</groupId>
+ <artifactId>wso2eventing-api</artifactId>
+ </dependency>
+
+ </dependencies>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <inherited>false</inherited>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <links>
+ <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
+ <link>http://java.sun.com/j2ee/1.4/docs/api/</link>
+ <link>http://jaxen.codehaus.org/apidocs/</link>
+ <link>http://ws.apache.org/commons/axiom/apidocs/</link>
+ <link>http://ws.apache.org/axis2/1_5_1/api/</link>
+ </links>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-5</version>
+ <inherited>false</inherited>
+ </plugin>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <!-- These features are disabled since they cause "mvn site" to hang -->
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <distributionManagement>
+ <snapshotRepository>
+ <id>apache-snapshots</id>
+ <name>Apache Development Repository</name>
+ <url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url>
+ </snapshotRepository>
+ <repository>
+ <id>apache-releases</id>
+ <name>Apache Ibiblio rsync Repository</name>
+ <url>scpexe://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+ </repository>
+ <site>
+ <id>website</id>
+ <url>scpexe://people.apache.org/www/synapse.apache.org/</url>
+ </site>
+ </distributionManagement>
+
+ <repositories>
+ <repository>
+ <id>apache-snapshots</id>
+ <name>Apache Maven 2 Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <updatePolicy>interval:10080</updatePolicy> <!-- i.e. refresh weekly -->
+ </snapshots>
+ </repository>
+ <repository>
+ <id>wso2-m2</id>
+ <name>WSO2 Maven 2 Repository</name>
+ <url>http://dist.wso2.org/maven2/</url>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>wso2-m2-snapshots</id>
+ <name>WSO2 Maven 2 SNAPSHOTS Repository</name>
+ <url>http://dist.wso2.org/snapshots/maven2/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>interval:10080</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <modules>
+ <!--module>modules/securevault</module>
+ <module>modules/commons</module>
+ <module>modules/transports</module>
+ <module>modules/tasks</module>
+ <module>modules/core</module>
+ <module>modules/extensions</module>
+ <module>modules/samples</module>
+ <module>modules/patches</module>
+ <module>modules/war</module>
+ <module>modules/handler</module>
+ <module>modules/xar-maven-plugin</module>
+ <module>modules/experimental</module>
+ <module>modules/migrator</module>
+ <module>modules/distribution</module>
+ <module>modules/packaging/package-skeleton</module>
+ <module>modules/packaging/package-archetype</module-->
+ </modules>
+
+ <properties>
+ <!-- Sets the source encoding to UTF-8 -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <!-- Synapse and related components -->
+ <synapse.version>2.0.0-SNAPSHOT</synapse.version>
+ <commons.dbcp.version>1.2.2</commons.dbcp.version>
+ <commons.pool.version>1.3</commons.pool.version>
+ <commons.vfs.version>2.0-21092010</commons.vfs.version>
+ <truezip.version>6.6</truezip.version>
+ <commons.net.version>1.4.1</commons.net.version>
+ <jsch.version>0.1.31</jsch.version>
+ <oro.version>2.0.8</oro.version>
+ <slf4j.version>1.5.6</slf4j.version>
+ <mina.version>1.1.0</mina.version>
+ <jms-1.1-spec.version>1.1</jms-1.1-spec.version>
+
+ <!-- Axis2 and its dependencies -->
+ <axis2.version>1.5.2</axis2.version>
+ <axis2.transport.version>1.0.0</axis2.transport.version>
+ <axiom.version>1.2.9</axiom.version>
+ <xml_schema.version>1.4.3</xml_schema.version>
+ <xml_apis.version>1.3.04</xml_apis.version>
+ <wsdl4j.version>1.6.2</wsdl4j.version>
+
+ <commons.logging.version>1.1.1</commons.logging.version>
+
+ <!-- addressing, rampart, neethi -->
+ <addressing.version>1.5.2</addressing.version>
+ <rampart.version>1.5</rampart.version>
+ <sandesha2.version>SNAPSHOT</sandesha2.version>
+ <neethi.version>2.0.4</neethi.version>
+ <wss4j.version>1.5.8</wss4j.version>
+ <jruby.version>1.3.0</jruby.version>
+ <xmlsec.version>1.4.2</xmlsec.version>
+ <bcprov.jdk15.version>140</bcprov.jdk15.version>
+
+ <xalan.version>2.7.1</xalan.version>
+ <xerces.version>2.8.1</xerces.version>
+ <js.version>1.6R5</js.version>
+
+ <!-- startup, quartz -->
+ <commons-collections.version>3.2.1</commons-collections.version>
+ <quartz.version>1.6.0</quartz.version>
+ <geronimo-spec.version>1.1</geronimo-spec.version>
+
+ <!-- xalan xsltc -->
+ <bcel.version>5.2</bcel.version>
+ <regexp.version>1.4</regexp.version>
+ <java-cup.version>0.0</java-cup.version>
+ <JLex.version>0.0</JLex.version>
+ <!-- misc -->
+ <junit.version>3.8.2</junit.version>
+ <!-- Warning: log4j versions above 1.2.14 introduce additional transitive dependencies,
+ some of which are not available from the Maven central repository. -->
+ <log4j.version>1.2.14</log4j.version>
+ <xmlunit.version>1.1</xmlunit.version>
+ <derby.version>10.4.2.0</derby.version>
+ <wrapper.version>3.2.3</wrapper.version>
+ <saxon.version>8.9</saxon.version>
+ <commons_io.version>1.4</commons_io.version>
+ <commons-cli.version>1.0</commons-cli.version>
+ <jline.version>0.9.94</jline.version>
+
+ <!-- dependencies of Synapse extensions module -->
+ <wso2commons.version>1.2</wso2commons.version>
+ <wso2caching.version>3.4.0</wso2caching.version>
+ <wso2throttle.version>3.2</wso2throttle.version>
+ <wso2eventing-api.version>2.1</wso2eventing-api.version>
+ <xbean.version>2.2.0</xbean.version>
+ <bsf.version>3.0</bsf.version>
+ <groovy.version>1.1-rc-1</groovy.version>
+ <servlet-api.version>2.3</servlet-api.version>
+ <commons-lang.version>2.4</commons-lang.version>
+
+ </properties>
+
+ <developers>
+ <!-- If you are a committer and your name is not listed here, please include/edit -->
+ <developer>
+ <name>Saminda Abeyruwan</name>
+ <id>saminda</id>
+ <email>saminda AT wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Afkham Azeez</name>
+ <id>azeez</id>
+ <email>azeez AT wso2.com</email>
+ <organization>WSO2</organization>
+ <url>http://afkham.org/</url>
+ </developer>
+ <developer>
+ <name>Paul Fremantle</name>
+ <id>pzf</id>
+ <email>paul AT wso2.com</email>
+ <organization>WSO2</organization>
+ <url>http://pzf.fremantle.org/</url>
+ </developer>
+ <developer>
+ <name>Eran Chinthaka</name>
+ <id>chinthaka</id>
+ <email>chinthaka AT wso2.com</email>
+ <organization>WSO2</organization>
+ <url>http://www.apache.org/~chinthaka</url>
+ </developer>
+ <developer>
+ <name>Ant Elder</name>
+ <id>antelder</id>
+ <email>ant.elder AT gmail.com</email>
+ <organization>IBM</organization>
+ </developer>
+ <developer>
+ <name>Glen Daniels</name>
+ <id>gdaniels</id>
+ <email>gdaniels AT apache.org</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Deepal Jayasinghe</name>
+ <id>deepal</id>
+ <email>deepal AT wso2.com</email>
+ <organization>WSO2</organization>
+ <url>http://www.apache.org/~deepal</url>
+ </developer>
+ <developer>
+ <name>Davanum Srinivas</name>
+ <id>dims</id>
+ <email>davanum@gmail.com</email>
+ <organization></organization>
+ </developer>
+ <developer>
+ <name>Sanjiva Weerawarana</name>
+ <id>sanjiva</id>
+ <email>sanjiva AT wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Ruwan Linton</name>
+ <id>ruwan</id>
+ <email>ruwan AT wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Jaliya Ekanayake</name>
+ <id>jaliya</id>
+ <email>jnekanayake AT gmail.com</email>
+ </developer>
+ <developer>
+ <name>Indika Kumara</name>
+ <id>indika</id>
+ <email>indika@wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Chathura Ekanayake</name>
+ <id>chathura_ce</id>
+ <email>chathura@wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Kasun Samarasinghe</name>
+ <id>kasun</id>
+ <email>kasun2010@gmail.com</email>
+ <organization>University of Colombo</organization>
+ </developer>
+ <developer>
+ <name>Tijs Rademakers</name>
+ <id>tijs</id>
+ <email>t.rademakers@chello.nl</email>
+ <organization>Atos Origin</organization>
+ </developer>
+ <developer>
+ <name>Asankha Perera</name>
+ <id>asankha</id>
+ <email>asankha AT apache.org</email>
+ <organization>AdroitLogic</organization>
+ <url>http://adroitlogic.org</url>
+ </developer>
+ <developer>
+ <name>Upul Godage</name>
+ <id>upul</id>
+ <email>upul AT apache.org</email>
+ <organization>Apache</organization>
+ </developer>
+ <developer>
+ <name>Oleg Kalnichevski</name>
+ <id>olegk</id>
+ <email>OlegK AT apache.org</email>
+ <organization>Apache</organization>
+ </developer>
+ <developer>
+ <name>Andreas Veithen</name>
+ <id>veithen</id>
+ <email>veithen AT apache.org</email>
+ <url>http://www.linkedin.com/in/aveithen</url>
+ </developer>
+ <developer>
+ <name>Asanka Abeysinghe</name>
+ <id>asanka</id>
+ <email>asankaa AT wso2.com</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Supun Kamburugamuva</name>
+ <id>supun</id>
+ <email>supun AT apache.org</email>
+ <organization>WSO2</organization>
+ </developer>
+ <developer>
+ <name>Hiranya Jayathilaka</name>
+ <id>hiranya</id>
+ <email>hiranya AT apache.org</email>
+ <organization>WSO2</organization>
+ </developer>
+ </developers>
+
+ <contributors>
+ <contributor>
+ <name>Eric Hubert</name>
+ </contributor>
+ <contributor>
+ <name>Hadrian Zbarcea</name>
+ </contributor>
+ <contributor>
+ <name>Sanjesh Pathak</name>
+ </contributor>
+ <contributor>
+ <name>Dave Irving</name>
+ </contributor>
+ </contributors>
+</project>
Added: synapse/trunk/scratch/hiranya/website/src/site/resources/css/site.css
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/resources/css/site.css?rev=1039608&view=auto
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/resources/css/site.css (added)
+++ synapse/trunk/scratch/hiranya/website/src/site/resources/css/site.css Sat Nov 27 02:59:36 2010
@@ -0,0 +1,39 @@
+.consoleOutput {
+ overflow: auto;
+ white-space: pre;
+ border: 1px dashed #3c78b5;
+ font-size: 11px;
+ font-family: Courier;
+ margin: 10px;
+ line-height: 13px;
+ background-color: #f0f0f0;
+ border-bottom: 1px dashed #3c78b5;
+ padding: 3px;
+ border-style: solid;
+}
+
+.xmlConf {
+ overflow: auto;
+ white-space: pre;
+ border: 1px dashed #3c78b5;
+ font-size: 11px;
+ font-family: Courier;
+ margin: 10px;
+ line-height: 13px;
+ background-color: #f0f0f0;
+ border-bottom: 1px dashed #3c78b5;
+ padding: 3px;
+ border-style: solid;
+}
+
+.command {
+ overflow: auto;
+ border: 1px dashed #3c78b5;
+ text-align: left;
+ background-color: #f0f0f0;
+ padding: 3px;
+ font-size: 11px;
+ font-family: Courier;
+ margin: 10px;
+ line-height: 13px;
+}
Added: synapse/trunk/scratch/hiranya/website/src/site/site.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/site.xml?rev=1039608&view=auto
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/site.xml (added)
+++ synapse/trunk/scratch/hiranya/website/src/site/site.xml Sat Nov 27 02:59:36 2010
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project name="Apache Synapse">
+ <skin>
+ <groupId>org.apache.maven.skins</groupId>
+ <artifactId>maven-default-skin</artifactId>
+ <version>1.0</version>
+ </skin>
+ <body>
+ <menu name="Main Menu">
+ <item name="Home" href="index.html"/>
+ <item name="Download"/>
+ <item name="History"/>
+ <item name="News"/>
+ <item name="License" href="http://www.apache.org/licenses/LICENSE-2.0"/>
+ </menu>
+ <menu name="Documentation">
+ <item name="Quick Start Guide" href="userguide/quick_start.html"/>
+ </menu>
+ <menu name="Developer Resources">
+ <item name="Checkout the Source"/>
+ <item name="Building Synapse"/>
+ <item name="Developer Guidelines"/>
+ <item name="Release Process"/>
+ <item name="Wiki"/>
+ </menu>
+ <menu name="Project Details">
+ <item name="Mailing Lists" href="mail-lists.html"/>
+ <item name="Source Repository" href="source-repository.html"/>
+ <item name="Issue Tracking" href="issue-tracking.html"/>
+ <item name="Dependencies" href="dependencies.html"/>
+ <item name="Project Team" href="team-list.html"/>
+ <item name="Project Summary" href="project-summary.html"/>
+ </menu>
+ </body>
+</project>
Added: synapse/trunk/scratch/hiranya/website/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/index.xml?rev=1039608&view=auto
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/index.xml (added)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/index.xml Sat Nov 27 02:59:36 2010
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<document>
+ <properties>
+ <title>Apache Synapse - The Lightweight ESB</title>
+ </properties>
+ <body>
+ <section name="Apache Synapse Enterprise Service Bus (ESB)">
+ <p>
+ Apache Synapse is a lightweight and high-performance Enterprise Service Bus (ESB).
+ Powered by a fast and asynchronous mediation engine, Apache Synapse provides
+ exceptional support for XML, Web Services and REST. In addition to XML and SOAP,
+ Apache Synapse supports several other content interchange formats, such as plain
+ text, binary, Hessian and JSON. The wide range of transport adapters available for
+ Synapse, enables it to communicate over many application and transport layer
+ protocols. As of now, Apache Synapse supports HTTP/S, Mail (POP3, IMAP, SMTP),
+ JMS, TCP, UDP, VFS, SMS, XMPP and FIX.
+ </p>
+ <p>
+ Apache Synapse is free and open source software distributed under the
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache Software License 2.0</a>.
+ The latest version of Synaspe is <a href="download/2.0/download.cgi">v2.0</a>.
+ This release comes with a horde of new features, bug fixes, performance and
+ stability improvements.
+ </p>
+ </section>
+ <section name="New in Version 2.0">
+ <ul>
+ <li>New, fine-grained configuration model</li>
+ <li>Hot deployment and hot update support for configuration artifacts</li>
+ <li>Priority based mediation support</li>
+ <li>Comprehensive eventing capabilities with WS-Eventing support</li>
+ <li>Secure vault for encrypting passwords in configuration files</li>
+ <li>File locking support in the VFS transport for concurrent polling</li>
+ <li>URLRewrite medaitor for fast and simple URL rewriting</li>
+ <li>Synapse configuration observer API</li>
+ <li>Multiple identity support in the HTTPS transport</li>
+ <li>Enhanced JMX monitoring support for the NHTTP transport</li>
+ <li>Dead letter channel implementation (experimental)</li>
+ <li>Synapse XAR Maven plugin for generating configuration artifacts</li>
+ </ul>
+ </section>
+ <section name="Key Features">
+ <ul>
+ <li>Proxy services - facilitating transport, interface (WSDL/Schema/Policy),
+ message format (SOAP 1.1/1.2, POX/REST, Text, Binary), QoS (WS-Addressing/
+ WS-Security/WS-RM) and optimization switching (MTOM/SwA)</li>
+ <li>Non-blocking HTTP/S transports for fast HTTP interactions and support for
+ thousands of concurrent connections</li>
+ <li>VFS transport for file manipulation and interaction with FTP, SFTP, CIFS
+ and WEBDAV</li>
+ <li>JMS support for binary, plain text, XML and SOAP payloads</li>
+ <li>Mail transport with extensive support for POP3, IMAP and SMTP</li>
+ <li>Support for industry driven <a href="http://www.fixprotocol.org/">Financial
+ Information eXchange (FIX)</a> protocol</li>
+ <li>Built-in Registry/Repository, facilitating dynamic reloading of the
+ configuration and associated resources (e.g. XSLTs, XSD, JS, ..)</li>
+ <li>Built-in support for scheduling tasks using the
+ <a target="_blank" href="http://www.opensymphony.com/quartz">Quartz</a> scheduler</li>
+ <li>Load-balancing (with or without sticky sessions) and fail-over routing</li>
+ <li>Support for many Web Services standards including WS-Addressing, WS-Security
+ and WS-Reliable Messaging</li>
+ <li>Policy based message throttling and caching (with special support for clustered
+ environments)</li>
+ <li>Message splitting and aggregation</li>
+ <li>Database lookup and update support with database connection pooling</li>
+ <li>Fine grained statistics collection over sequences, endpoints and proxy services</li>
+ <li>JMX monitoring and management</li>
+ <li>Easily extendable with Java, Spring, or BSF Scripting languages (Javascript,
+ Ruby, Groovy, etc.)</li>
+ </ul>
+ </section>
+ </body>
+</document>
Added: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/quick_start.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/quick_start.xml?rev=1039608&view=auto
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/quick_start.xml (added)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/quick_start.xml Sat Nov 27 02:59:36 2010
@@ -0,0 +1,417 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<document>
+ <properties>
+ <title>Apache Synapse - Quick Start Guide</title>
+ </properties>
+ <body>
+ <section name="Apache Synapse Quick Start Guide">
+ <p>
+ Welcome to Apache Synapse quick start guide. This tutorial demonstrates two
+ sample applications covering the fundamental usage scenarios of Synapse, namely
+ message mediation and service mediation. It starts from the absolute begining and
+ walks you through a series of steps while giving a firm grasp on the Synapse
+ messaging model.
+ </p>
+ </section>
+
+ <section name="Pre-requisites">
+ <p>
+ You should have following pre-requisites installed on your system to
+ follow this tutorial.
+ </p>
+ <ul>
+ <li>
+ A Java 2 SE - JDK or JRE of version 1.5.x or higher (JDK 1.6.0_21 recommended)
+ </li>
+ <li>
+ Apache Ant <a href="http://ant.apache.org">http://ant.apache.org</a>
+ </li>
+ </ul>
+ </section>
+
+ <section name="Installing Synapse">
+ <p>
+ Let's start by downloading Apache Synapse. Launch a web browser and navigate to
+ the <a href="">Synapse Downloads</a> page. Download the binary distribution
+ of the latest release. Binary distributions are available in standard zip
+ format and Unix tar ball format.
+ </p>
+ <p>
+ Once downloaded you can install Synapse by simply extracting the archive to
+ a suitable location on your local disk. When extracted, a directory named
+ synapse with the corresponding version number will be created. This directory
+ houses all the libraries, configuration files, scripts and other artifacts
+ used by the Synapse runtime. From now on we will refer to this directory as
+ {SYNAPSE_HOME}. So for an example {SYNAPSE_HOME}/bin refers to the subdirectory
+ named 'bin' which is generally available in the Synapse installation.
+ </p>
+ </section>
+
+ <section name="Running the Axis2 Server">
+ <p>
+ Samples described in this tutorial involve routing messages to a Web Service
+ through the Synapse ESB. In real world applications, these Web Services could be
+ hosted in a web server in your organization, or practiacally anywhere in the
+ Internet. In this tutorial we will be using a sample Web Service that ships with
+ Synapse and we will deploy it in the sample Axis2 server that comes bundled with
+ Synapse.
+ </p>
+ <p>
+ To deploy the sample service in the Axis2 server, go to
+ {SYNAPSE_HOME}/samples/axis2Server/src/SimpleStockQuoteService directory and run
+ 'ant'. You will see an output similar to the following as the service is built
+ and deployed to the sample Axis2 server.
+ </p>
+ <div class="consoleOutput">user@domain:/opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService$ ant
+Buildfile: build.xml
+
+clean:
+
+init:
+[mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp
+[mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/classes
+[mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Server/repository/services
+
+compile-all:
+[javac] Compiling 9 source files to /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/classes
+
+build-service:
+[mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote
+[mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF
+[copy] Copying 1 file to /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF
+[copy] Copying 9 files to /opt/synapse-2.0.0/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote
+[jar] Building jar: /opt/synapse-2.0.0/samples/axis2Server/repository/services/SimpleStockQuoteService.aar
+
+BUILD SUCCESSFUL
+Total time: 1 second</div>
+ <p>
+ Now go to {SYNAPSE_HOME}/samples/axis2Server directory and start the sample server
+ by executing the following command.
+ </p>
+ <div class="command">
+ Linux / Unix: . axis2server.sh<br/>
+ Windows: axis2server.bat
+ </div>
+ <p>
+ This will start the Axis2 server on HTTP port 9000. You can see the WSDL of the
+ sample service by launching your web browser and navigating to the URL
+ http://localhost:9000/services/SimpleStockQuoteService?wsdl.
+ </p>
+ </section>
+
+ <section name="Message Mediation">
+ <p>
+ Now we are all set to try our first scenario with Synapse. We will be starting
+ Synapse using the sample configuration found in synapse_sample_0.xml file which
+ resides in {SYNAPSE_HOME}/repository/conf/sample directory. This configuration
+ enables Synapse to log all the messages passing through the service bus:
+ </p>
+ <div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+ <sequence name="main">
+ <log level="full"/>
+ <send/>
+ </sequence>
+</definitions></div>
+ <p>
+ To start the ESB with the above configuration go the {SYNAPSE_HOME}/bin directory
+ and execute the following command.
+ </p>
+ <div class="command">
+ Linux / Unix: . synapse.sh -sample 0<br/>
+ Windows: synapse.bat -sample 0
+ </div>
+ <p>
+ Following messages will be displayed on the console as Synapse boots up with the
+ above configuration.
+ </p>
+ <div class="consoleOutput">Starting Synapse/Java ...
+Using SYNAPSE_HOME: /opt/synapse-2.0.0
+Using JAVA_HOME: /opt/jdk1.6.0_16
+Using SYNAPSE_XML: /opt/synapse-2.0.0/repository/conf/sample/synapse_sample_0.xml
+2010-11-26 01:33:03,651 [-] [main] INFO SynapseServer Starting Apache Synapse...
+2010-11-26 01:33:03,683 [-] [main] INFO SynapseControllerFactory Using Synapse home : /opt/synapse-2.0.0
+2010-11-26 01:33:03,683 [-] [main] INFO SynapseControllerFactory Using Axis2 repository : /opt/synapse-2.0.0/repository
+2010-11-26 01:33:03,683 [-] [main] INFO SynapseControllerFactory Using axis2.xml location : /opt/synapse-2.0.0/repository/conf/axis2.xml
+2010-11-26 01:33:03,683 [-] [main] INFO SynapseControllerFactory Using synapse.xml location : /opt/synapse-2.0.0/repository/conf/sample/synapse_sample_0.xml
+2010-11-26 01:33:03,683 [-] [main] INFO SynapseControllerFactory Using server name : localhost
+2010-11-26 01:33:03,698 [-] [main] INFO SynapseControllerFactory The timeout handler will run every : 15s
+2010-11-26 01:33:03,808 [-] [main] INFO Axis2SynapseController Initializing Synapse at : Fri Nov 26 01:33:03 IST 2010
+2010-11-26 01:33:04,536 [-] [main] ERROR SandeshaModule Could not load module policies. Using default values.
+2010-11-26 01:33:04,560 [-] [main] INFO HttpCoreNIOSSLSender Loading Identity Keystore from : lib/identity.jks
+2010-11-26 01:33:04,576 [-] [main] INFO HttpCoreNIOSSLSender Loading Trust Keystore from : lib/trust.jks
+2010-11-26 01:33:04,668 [-] [main] INFO HttpCoreNIOSender HTTPS Sender starting
+2010-11-26 01:33:04,674 [-] [main] INFO HttpCoreNIOSender HTTP Sender starting
+2010-11-26 01:33:04,675 [-] [main] INFO JMSSender JMS Sender started
+2010-11-26 01:33:04,677 [-] [main] INFO JMSSender JMS Transport Sender initialized...
+2010-11-26 01:33:04,681 [-] [main] INFO VFSTransportSender VFS Sender started
+2010-11-26 01:33:04,828 [-] [main] WARN JmxAdapter Using unsecured JMX remote access!
+2010-11-26 01:33:04,959 [-] [main] INFO HttpCoreNIOSSLListener Loading Identity Keystore from : lib/identity.jks
+2010-11-26 01:33:04,961 [-] [main] INFO HttpCoreNIOSSLListener Loading Trust Keystore from : lib/trust.jks
+2010-11-26 01:33:04,976 [-] [main] INFO Axis2SynapseController Loading mediator extensions...
+2010-11-26 01:33:05,013 [-] [main] INFO XMLConfigurationBuilder Generating the Synapse configuration model by parsing the XML configuration
+2010-11-26 01:33:05,114 [-] [main] INFO SynapseConfigurationBuilder Loaded Synapse configuration from : /opt/synapse-2.0.0/repository/conf/sample/synapse_sample_0.xml
+2010-11-26 01:33:05,158 [-] [main] INFO Axis2SynapseController Deploying the Synapse service...
+2010-11-26 01:33:05,175 [-] [main] INFO Axis2SynapseController Deploying Proxy services...
+2010-11-26 01:33:05,175 [-] [main] INFO Axis2SynapseController Deploying EventSources...
+2010-11-26 01:33:05,190 [-] [main] INFO MailTransportListener MAILTO Listener started
+2010-11-26 01:33:05,212 [-] [main] INFO HttpCoreNIOListener HTTPS Listener started on port : 8243
+2010-11-26 01:33:05,215 [-] [main] INFO HttpCoreNIOListener HTTP Listener started on port : 8280
+2010-11-26 01:33:05,215 [-] [main] INFO VFSTransportListener VFS Listener started
+2010-11-26 01:33:05,215 [-] [main] INFO Axis2SynapseController Management using JMX available via: service:jmx:rmi:///jndi/rmi://hiranya.wso2.com:1099/synapse
+2010-11-26 01:33:05,215 [-] [main] INFO ServerManager Server ready for processing...
+2010-11-26 01:33:05,216 [-] [main] INFO SynapseServer Apache Synapse started successfully</div>
+ <p>
+ Note that by default Synapse listens for HTTP requests on port 8280.
+ </p>
+ <subsection name="Executing the Sample Client">
+ <p>
+ Now we have a Web Service hosted in Axis2 and a Synapse ESB instance which
+ is configured to log and route messages. All that is left is to send some requests
+ to Synapse and see the magic happen. Synapse comes bundled with a sample
+ Web Service client that can be used to send different kinds of requests. Go to
+ {SYNAPSE_HOME}/samples/axis2Client directory and execute the following command
+ to send a request to Synapse.
+ </p>
+ <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280 -Dmode=quote -Dsymbol=IBM</div>
+ <p>
+ You should get the following output on the conosle.
+ </p>
+ <div class="consoleOutput">Buildfile: build.xml
+
+init:
+ [mkdir] Created dir: /opt/synapse-2.0.0/samples/axis2Client/target/classes
+
+compile:
+ [javac] Compiling 22 source files to /opt/synapse-2.0.0/samples/axis2Client/target/classes
+ [javac] Note: /opt/synapse-2.0.0/samples/axis2Client/src/samples/userguide/PWCallback.java uses or overrides a deprecated API.
+ [javac] Note: Recompile with -Xlint:deprecation for details.
+ [javac] Note: /opt/synapse-2.0.0/samples/axis2Client/src/samples/userguide/LoadbalanceFailoverClient.java uses unchecked or unsafe operations.
+ [javac] Note: Recompile with -Xlint:unchecked for details.
+
+stockquote:
+ [java] 2010-11-26 01:35:16,414 [-] [main] ERROR SandeshaModule Could not load module policies. Using default values.
+ [java] 2010-11-26 01:35:16,485 [-] [main] INFO MailTransportSender MAILTO Sender started
+ [java] 2010-11-26 01:35:16,496 [-] [main] INFO JMSSender JMS Sender started
+ [java] 2010-11-26 01:35:16,497 [-] [main] INFO JMSSender JMS Transport Sender initialized...
+ [java] Standard :: Stock price = $99.14593325984416
+
+BUILD SUCCESSFUL
+Total time: 5 seconds</div>
+ <p>
+ This sends a stock quote request for the symbol 'IBM' with the transport URL set
+ to http://localhost:8280 (Synapse) and the WS-Addressing EPR set to
+ http://localhost:9000/services/SimpleStockQuoteService (Axis2). Synapse first
+ logs the message and then forwards it to the URL given in the WS-Addressing
+ headers. The actual message sent by the client is as follows.
+ </p>
+ <div class="consoleOutput">POST / HTTP/1.1
+Content-Type: text/xml; charset=UTF-8
+SOAPAction: "urn:getQuote"
+User-Agent: Axis2
+Host: 127.0.0.1
+Transfer-Encoding: chunked
+
+218
+<?xml version='1.0' encoding='UTF-8'?>
+ <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+ <soapenv:Header>
+ <wsa:To>http://localhost:9000/services/SimpleStockQuoteService</wsa:To>
+ <wsa:MessageID>urn:uuid:D538B21E30B32BB8291177589283717</wsa:MessageID>
+ <wsa:Action>urn:getQuote</wsa:Action>
+ </soapenv:Header>
+ <soapenv:Body>
+ <m0:getQuote xmlns:m0="http://services.samples">
+ <m0:request>
+ <m0:symbol>IBM</m0:symbol>
+ </m0:request>
+ </m0:getQuote>
+ </soapenv:Body>
+ </soapenv:Envelope>0</div>
+ <p>
+ Now take a look at the console running Synapse. You will see that all the
+ details of the mediation are logged along with all the SOAP messages
+ passed through Synapse. If you execute Synapse in debug mode by editing
+ the lib/log4j.properties file and setting "log4j.category.org.apache.synapse"
+ as "DEBUG" instead of INFO, you will see even more information as follows after
+ a restart and on replay of the above scenario.
+ </p>
+ <div class="consoleOutput">2010-11-26 01:39:42,958 [-] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
+2010-11-26 01:39:42,959 [-] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: http://localhost:9000/services/SimpleStockQuoteService
+2010-11-26 01:39:42,959 [-] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: urn:getQuote
+2010-11-26 01:39:42,959 [-] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: urn:getQuote
+2010-11-26 01:39:42,960 [-] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
+2010-11-26 01:39:42,960 [-] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
+2010-11-26 01:39:42,961 [-] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
+2010-11-26 01:39:42,961 [-] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
+2010-11-26 01:39:42,961 [-] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
+2010-11-26 01:39:42,989 [-] [HttpServerWorker-1] INFO LogMediator To: http://localhost:9000/services/SimpleStockQuoteService, WSAction: urn:getQuote, SOAPAction: urn:getQuote, ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:881AF81981B97048961290715782743, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:To>http://localhost:9000/services/SimpleStockQuoteService</wsa:To><wsa:MessageID>urn:uuid:881AF81981B97048961290715782743</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples"><m0:request><m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope>
+2010-11-26 01:39:42,990 [-] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
+2010-11-26 01:39:42,990 [-] [HttpServerWorker-1] DEBUG SendMediator Start : Send mediator
+2010-11-26 01:39:42,990 [-] [HttpServerWorker-1] DEBUG SendMediator Sending request message using implicit message properties..
+Sending To: http://localhost:9000/services/SimpleStockQuoteService
+SOAPAction: urn:getQuote
+2010-11-26 01:39:42,993 [-] [HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient Sending [add = false] [sec = false] [rm = false] [to=Address: http://localhost:9000/services/SimpleStockQuoteService]
+2010-11-26 01:39:42,997 [-] [HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient Message [Original Request Message ID : urn:uuid:881AF81981B97048961290715782743] [New Cloned Request Message ID : urn:uuid:5e919190-98a9-4441-8bb0-d09271c2758a]
+2010-11-26 01:39:43,003 [-] [HttpServerWorker-1] DEBUG SynapsePropertiesLoader Retrieving synapse properties from the cache
+2010-11-26 01:39:43,003 [-] [HttpServerWorker-1] DEBUG MiscellaneousUtil The name with 'synapse.global_timeout_interval' cannot be found. Using default value : 86400000
+2010-11-26 01:39:43,004 [-] [HttpServerWorker-1] INFO TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout
+2010-11-26 01:39:43,004 [-] [HttpServerWorker-1] DEBUG SynapsePropertiesLoader Retrieving synapse properties from the cache
+2010-11-26 01:39:43,004 [-] [HttpServerWorker-1] DEBUG MiscellaneousUtil The name with 'synapse.timeout_handler_interval' cannot be found. Using default value : 15000
+2010-11-26 01:39:43,039 [-] [HttpServerWorker-1] DEBUG SynapseCallbackReceiver Callback added. Total callbacks waiting for : 1
+2010-11-26 01:39:43,144 [-] [HttpServerWorker-1] DEBUG SendMediator End : Send mediator
+2010-11-26 01:39:43,145 [-] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
+2010-11-26 01:39:43,271 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Callback removed for request message id : urn:uuid:5e919190-98a9-4441-8bb0-d09271c2758a. Pending callbacks count : 0
+2010-11-26 01:39:43,271 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Synapse received an asynchronous response message
+2010-11-26 01:39:43,271 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Received To: null
+2010-11-26 01:39:43,271 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver SOAPAction:
+2010-11-26 01:39:43,271 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver WSA-Action:
+2010-11-26 01:39:43,272 [-] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Body :
+<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples"><ns:return xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:GetQuoteResponse"><ax21:change>-2.533440547346707</ax21:change><ax21:earnings>12.865664096815566</ax21:earnings><ax21:high>-62.37116432061533</ax21:high><ax21:last>63.140427676860845</ax21:last><ax21:lastTradeTimestamp>Fri Nov 26 01:39:43 IST 2010</ax21:lastTradeTimestamp><ax21:low>65.32586424659065</ax21:low><ax21:marketCap>3.6215661345786005E7</ax21:marketCap><ax21:name>IBM Company</ax21:name><ax21:open>64.94029146457328</ax21:open><ax21:peRatio>23.84144924463005</ax21:peRatio><ax21:percentageChange>-3.6037604984655096&l
t;/ax21:percentageChange><ax21:prevClose>70.29991444840613</ax21:prevClose><ax21:symbol>IBM</ax21:symbol><ax21:volume>9723</ax21:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope>
+2010-11-26 01:39:43,274 [-] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
+2010-11-26 01:39:43,274 [-] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
+2010-11-26 01:39:43,274 [-] [HttpClientWorker-1] DEBUG SequenceMediator Start : Sequence <main>
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] DEBUG LogMediator Start : Log mediator
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] INFO LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:5e919190-98a9-4441-8bb0-d09271c2758a, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples"><ns:return xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:GetQuoteResponse"><ax21:change>-2.533440547346707</ax21:change><ax21:earnings>12.865664096815566</ax21:earnings><ax21:high>-62.37116432061533</ax21:high><ax21:last>63.140427676860845</ax21:last><ax21:lastTradeTimestamp>Fri Nov 26 01:39:43 IST 2010</ax21:lastTradeTimestamp><ax21:low>65.32586424659
065</ax21:low><ax21:marketCap>3.6215661345786005E7</ax21:marketCap><ax21:name>IBM Company</ax21:name><ax21:open>64.94029146457328</ax21:open><ax21:peRatio>23.84144924463005</ax21:peRatio><ax21:percentageChange>-3.6037604984655096</ax21:percentageChange><ax21:prevClose>70.29991444840613</ax21:prevClose><ax21:symbol>IBM</ax21:symbol><ax21:volume>9723</ax21:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope>
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] DEBUG LogMediator End : Log mediator
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] DEBUG SendMediator Start : Send mediator
+2010-11-26 01:39:43,275 [-] [HttpClientWorker-1] DEBUG SendMediator Sending response message using implicit message properties..
+Sending To: http://www.w3.org/2005/08/addressing/anonymous
+SOAPAction:
+2010-11-26 01:39:43,282 [-] [HttpClientWorker-1] DEBUG SendMediator End : Send mediator
+2010-11-26 01:39:43,282 [-] [HttpClientWorker-1] DEBUG SequenceMediator End : Sequence <main></div>
+ <p>
+ And with that you have successfully completed the first part of this guide. Now let's
+ look at the next scenario, service mediation with proxy services.
+ </p>
+ </subsection>
+ </section>
+ <section name="Service Mediation (Proxy Services)">
+ <p>
+ As the name implies, a proxy service acts as an intermediary service hosted in
+ Synapse, and typically fronts an existing service endpoint. A proxy service can be
+ created and exposed on a different transport, schema, WSDL, or QoS setup (such
+ as WS-Security, WS-Reliable Messaging) than the real service. Proxy services
+ are capable of mediating requests before they are delivered to the actual
+ endpoint. Similarly responses from the actual service can be mediated before
+ they are sent back to the client.
+ </p>
+ <p>
+ Clients can send proxy service requests directly to Synapse. From the client's
+ perspective, proxy services are simply Web Services hosted on Synapse. They can
+ append the '?wsdl' suffix to the proxy service endpoints to get the WSDLs of these
+ virtual services. But in the Synapse configuration, service requests can be handled
+ in anyway you like. Most obvious thing would be to do some processing on the
+ message and send it to the actual service, which could be running on a different host.
+ But it is not necessary to always send the messages to an actual service. You may
+ list any combination of tasks to be performed on the messages received by
+ the proxy service and terminate the flow or send some response back to the
+ client even without sending it to any service.
+ </p>
+ <p>
+ Let's explore a simple proxy services scenario step-by-step to get a better feeling.
+ As you have downloaded and installed Synapse in the previous section, now you
+ just run the scenario straightaway. This scenario also requires the same stock
+ quote service we used in the previous example. So have it deployed in Axis2 and make
+ sure Axis2 server is up and running.
+ </p>
+ <p>
+ We are going to start Synapse with a configuration which contains a proxy service.
+ The configuration in synapse_sample_150.xml file in repository/conf/sample directory
+ matches well with the scope of this tutorial.
+ </p>
+ <div class="xmlConf"><definitions xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+ <proxy name="StockQuoteProxy">
+ <target>
+ <endpoint>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
+ <outSequence>
+ <send/>
+ </outSequence>
+ </target>
+ <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ </proxy>
+</definitions></div>
+ <p>
+ The above configuration exposes a proxy service named StockQuoteProxy
+ and specifies an endpoint
+ (http://localhost:9000/services/SimpleStockQuoteService) as the target for the
+ proxy service. Therefore, messages coming to the proxy service will be
+ directed to the address http://localhost:9000/services/SimpleStockQuoteService
+ specified in the endpoint. There is also an out sequence for the proxy
+ service, which will be executed for response messages. In the out sequence,
+ we just send the messages back to the client. The publishWSDL tag
+ specifies an WSDL to be published for this proxy service. Let's start
+ Synapse with this sample configuration by running the below command from
+ the {SYNAPSE_HOME}/bin directory.
+ </p>
+ <div class="command">
+ Linux / Unix: . synapse.sh -sample 150<br/>
+ Windows: synapse.bat -sample 150
+ </div>
+ <p>
+ Synapse will display a set of messages as it boots up just like in the previous
+ section describing the start-up procedure. Before running the client, it
+ is time to observe another feature of proxy services. That is displaying
+ the published WSDL. Just open a web browser and point it to the URL
+ http://localhost:8280/services/StockQuoteProxy?wsdl. You will see the
+ sample_proxy_1.wsdl specified in the configuration but containing the
+ correct EPRs for the service over HTTP/S.
+ </p>
+ <subsection name="Executing the Sample Client">
+ <p>
+ Now we can invoke the proxy service by sending a request from our sample Axis2
+ client. Go to the {SYNAPSE_HOME}/samples/axis2Client directory and run the
+ following command.
+ </p>
+ <div class="command">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy -Dmode=quote -Dsymbol=IBM</div>
+ <p>
+ The above command sends a stock quote request directly to the provided
+ transport endpoint at http://localhost:8280/services/StockQuoteProxy. The
+ proxy service will forward the message to the Axis2 server and route the
+ response from Axis2 back to the client. You will see the response from the
+ server displayed on the console as follows:
+ </p>
+ <div class="consoleOutput">Standard :: Stock price = $165.32687331383468</div>
+ </subsection>
+ <subsection name="More on Proxy Services">
+ <p>
+ Proxy services are among the most powerful functional components of Apache
+ Synapse. They can be used to perform transport switching, message format
+ switching and lot more. This quick start tutorial only covers the simple
+ usecases of proxy services. Please refer samples #150 and above in the
+ Synapse samples catalog, for in depth coverage on more advanced use cases.
+ </p>
+ </subsection>
+ </section>
+ <section name="Conclusion">
+ <p>
+ This brings the Synapse quick start guide to an end. Now it is time to go
+ deeper and discover the advanced features of Synapse. You can browse through
+ the array of samples for your interested areas. If you have any issue regarding
+ Synapse as a user, feel free write to the Synapse user mailing list
+ (<a href="http://synapse.apache.org/mail-lists.html">http://synapse.apache.org/mail-lists.html</a>).
+ </p>
+ </section>
+ </body>
+</document>
\ No newline at end of file