You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/22 11:45:29 UTC

[10/11] Added missing files of cloud controller from cloud controller 1.0.1

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/docs/xdoc/installation_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/installation_guide.xml b/products/cloud_controller/docs/xdoc/installation_guide.xml
new file mode 100644
index 0000000..8da1f52
--- /dev/null
+++ b/products/cloud_controller/docs/xdoc/installation_guide.xml
@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Installation Guide
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+    </head>
+    <body xml:lang="en">
+        [ <a href="docs_index.html"> Documentation Index </a> ]
+        <h1>
+            WSO2 Message Broker (MB) Installation Guide
+        </h1>
+        <p/>
+
+        <p>This installation guide provides information on,</p>
+        <ol>
+            <li>the prerequisites for WSO2 MB</li>
+            <li>installation instructions</li>
+            <li>starting up WSO2 MB, and</li>
+            <li>accessing the management console</li>
+        </ol>
+
+        <p>
+            This document describes the distribution packages available in WSO2 MB -
+            the binary distribution and the source distribution for more advanced
+            users. It is followed by simple instructions on how to install and run
+            WSO2 MB using the binary distribution and how to build WSO2 MB using the
+            source distribution.
+        </p>
+
+        <h2>Contents</h2>
+        <div class="toc">
+            <ul>
+                <li>
+                    <a href="#Distribution">Distribution Packages</a>
+                </li>
+                <li>
+                    <a href="#Installing">Installing and Running WSO2 MB using the
+                        Binary Distribution
+                    </a>
+                    <ul>
+                        <li>
+                            <a href="#Prerequisites">Prerequisites</a>
+                        </li>
+                        <li>
+                            <a href="#Installing2">Installing on Linux</a>                            
+                        </li>
+                        <li>
+                            <a href="#Installing1">Installing on MS Windows</a>
+                        </li>
+                    </ul>
+                </li>
+                <li>
+                    <a href="#Building">Building WSO2 MB Using the Source Distribution</a>
+                    <ul>
+                        <li>
+                            <a href="#Prerequisites">Prerequisites</a>
+                        </li>
+                        <li>
+                            <a href="#Setting">Setting Up the Environment and Tools</a>
+                        </li>
+                        <li>
+                            <a href="#Building1">Building WSO2 MB</a>
+                        </li>
+                    </ul>
+                </li>
+            </ul>
+        </div>
+        <h2 id="Distribution">
+            Distribution Packages
+        </h2>
+        <p>
+            The following distribution packages are available for <a
+                href="http://wso2.org/downloads/message-broker/">download</a>.
+        </p>
+        <p>
+            1. Binary Distribution : Includes binary files for both MS Windows and
+            Linux operating systems, compressed into a single a zip file. Recommended
+            for normal users.
+        </p>
+        <p>
+            2. Source Distribution : Includes the source code for both MS Windows and Linux
+            operating systems, compressed into a single zip file which can be used to build the binary files.
+            Recommended for more advanced users.
+        </p>
+        <h2 id="Installing">
+            Installing and Running WSO2 MB using the Binary Distribution
+        </h2>
+        <h3 id="Prerequisites">
+            Prerequisites
+        </h3>
+        <p/>
+        <table border="2">
+            <tbody>
+                <tr>
+                    <td>
+                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
+                            Development Kit
+                        </a>
+                    </td>
+                    <td>
+                        1.6.x (For instructions on setting up the JDK on different operating
+                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
+                        <p/>
+                        <p>
+                            To build WSO2 MB from the Source distribution, it is necessary
+                            that you have JDK 1.6.x version and Maven 2.1.0 or later
+                        </p>
+                    </td>
+                </tr>
+
+                
+                <tr>
+                    <td>
+                        <a href="http://maven.apache.org/">Apache Maven</a>- To
+                        build MB from Source
+                    </td>
+                    <td>
+                        To build the WSO2 MB from its source distribution, you will need
+                        Maven 2.1.0 or later
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Web browser- To start the MB Management Console
+                    </td>
+                    <td>
+                        Mozilla Firefox 3.0 at a resolution of 1024x768 is recommended. MS
+                        Internet Explorer 7 may be used as well, with some minor limitations. Once
+                        the WSO2 MB is started point the browser to
+                        https://localhost:9443/carbon in order to access your Management Console.
+                        See the
+                        <a href="user_guide.html">WSO2 MB User Guide</a>
+                        for more details.
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Memory
+                    </td>
+                    <td>
+                        No minimum requirement - A heap size of 256~512MB is generally
+                        sufficient to process typical SOAP messages. Requirements may vary
+                        with larger message size and on the number of messages processed
+                        concurrently
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Disk
+                    </td>
+                    <td>
+                        No minimum requirement. The installation will require ~125 MB
+                        excluding space allocated for log files and Databases.
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Operating System
+                    </td>
+                    <td>
+                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
+                        Vista). Since WSO2 MB is a Java application, it will generally be
+                        possible to run it on other operating systems with a JDK 1.6.x
+                        runtime.
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        <p/>
+
+        <h2 id="Installing2">Installing on Linux/Unix</h2>
+        <p>
+            The following steps will take you through the binary distribution
+            installation on Unix/Linux systems.
+        </p>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the WSO2 MB binary distribution.
+            </li>
+            <li>
+                Extract the zip archive where you want the WSO2 MB installed (e.g. into
+                /opt)
+            </li>
+            <li>
+                Set the <a href="setting_java_home.html">JAVA_HOME</a>
+                environment variable to your Java home using the
+                export command or by editing /etc/profile, and add the Java /bin
+                directory to your PATH
+            </li>
+            <li>
+                Execute the WSO2 MB start script or the daemon script from the bin
+                directory. e.g. ./wso2server.sh OR ./daemon.sh start OR
+                ./wso2server.sh --console
+            </li>
+            <li>
+                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
+                which will take you to the WSO2 MB Management Console. (Note that server
+                start up may take time)
+            </li>
+            <li>
+                Login as "admin" using the default password "admin"
+            </li>
+        </ol>
+
+        <h2 id="Installing1">
+            <strong>Installing on MS Windows</strong>
+        </h2>
+        <p>
+            The following steps will take you through the installation for the MS
+            Windows operating system.
+        </p>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the WSO2 MB binary distribution.
+            </li>
+            <li>
+                Extract the zip archive where you want the WSO2 MB installed
+            </li>
+            <li>
+                Set the
+                <a href="setting_java_home.html">JAVA_HOME</a>
+                environment variable to your Java installation, and the PATH environment
+                variable to the Java /bin directory.
+            </li>
+            <li>
+                Execute the WSO2 MB start script from the bin folder. e.g. wso2server.bat
+            </li>
+            <li>
+                If you would like to install the WSO2 MB as a Windows service, use the
+                install.bat script
+            </li>
+            <li>
+                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
+                which will take you to the WSO2 MB Management Console.
+            </li>
+            <li>
+                Login as "admin" using the default password "admin"
+            </li>
+        </ol>
+        <h2 id="Building">
+            Building WSO2 MB Using the Source Distribution
+        </h2>
+        <h3 id="Prerequisi1">
+            Prerequisites
+        </h3>
+        <p/>
+        <table border="2">
+            <tbody>
+                <tr>
+                    <td>
+                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
+                            Development Kit
+                        </a>
+                    </td>
+                    <td>
+                        1.6.x (For instructions on setting up the JDK in different operating
+                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        <a href="http://maven.apache.org/">Apache Maven</a>- To
+                        build MB from Source
+                    </td>
+                    <td>
+                        To build the WSO2 MB from its source distribution, you will need
+                        Maven 2.1.0 or later
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Operating System
+                    </td>
+                    <td>
+                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
+                        Vista)
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        <p/>
+        <h3 id="Setting">
+            Setting up the Environment and Tools
+        </h3>
+        <p/>
+        <p>
+            <strong>Maven:</strong>
+        </p>
+        <p>
+            The WSO2 MB build is based on <a href="http://maven.apache.org/">Apache
+            Maven 2</a>. Hence, it is a prerequisite to have Maven (version 2.1.0 or later)
+            and JDK (version 1.6.x) installed in order to build WSO2 MB from the
+            source distribution. Extensive instructions on using Maven 2 are available
+            on the Maven website.
+        </p>
+        <p>
+            Please refer to the
+            <a
+                    href="http://maven.apache.org/guides/getting-started/index.html">Maven
+                Getting Started Guide
+            </a>
+            for more information on Maven
+        </p>
+        <ul>
+            <li>
+                Unix based OS (e.g., Linux)
+            </li>
+        </ul>
+        <ol>
+            <li>
+                Download Apache Maven tar ball or the zip archive.
+            </li>
+            <li>
+                Expand it to a directory of choice.
+            </li>
+            <li>
+                Set the environment variable M2_HOME and add M2_HOME/bin to the
+                path as well.
+            </li>
+            <li>
+                Run mvn --version to verify that it is correctly installed.
+            </li>
+        </ol>
+        <ul>
+            <li>
+                MS Windows
+            </li>
+        </ul>
+        <ol>
+            <li>
+                Download and run the Apache Maven Windows installer package.
+            </li>
+            <li>
+                Set the 'Environment Variables' (create the system variable M2_HOME
+                and edit the path. e.g., "C:\Program Files\Apache Software
+                Foundation\maven-2.0.6"; path %M2_HOME%\bin)
+            </li>
+            <li>
+                Make sure that the system variable
+                <a href="setting_java_home.html">JAVA_HOME</a>
+                is set to the location of your JDK, e.g., C:\Program Files\Java\jdk1.5
+            </li>
+            <li>
+                Run mvn --version to verify that it is correctly installed.
+            </li>
+        </ol>
+        <p>
+            Once Maven is properly installed, you can start building the WSO2 MB.
+        </p>
+        <h3 id="Building1">
+            Building WSO2 MB
+        </h3>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the source distribution, which is available as a zip archive.
+            </li>
+            <li>
+                Expand the source archive to a directory of your choice.
+            </li>
+            <li>
+                All the necessary build scripts are included with the source
+                distribution.
+            </li>
+            <li>
+                You can run the following command inside that directory to build the
+                WSO2 MB. Note that you will require a connection to the Internet for the Maven build
+                to download dependencies required for the build.
+                <br/>
+                <p>
+                    Command: <strong>mvn clean install</strong>
+                </p>
+            </li>
+        </ol>
+        <p>
+            This will create the complete release artifacts including the binary and
+            source distributions in the modules/distribution/target/ directory which can be installed using
+            the above instructions.
+        </p>
+        <p>
+            Note: The first time you run Maven it will automatically download the
+            dependent .jar files. Therefore, the first run will take more time.
+        </p>
+    </body>
+</html>                                                 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml b/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
new file mode 100644
index 0000000..33c563e
--- /dev/null
+++ b/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+~ Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+~
+~ WSO2 Inc. 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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB Samples - Web Service Client Sample</title>
+        <link href="../css/mb-docs.css" rel="stylesheet"/>
+        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+    <body>
+        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
+        <h1>Web Service Client Sample</h1>
+        <p> <a href="http://www.w3.org/Submission/WS-Eventing/">Web Service Eventing Specification </a>  defines how Web
+            Services Eventing supports the simplest levels of Web
+            services interfaces for notification producers and consumers for a distributed event management system. It
+            is a baseline set of operations that allow Web services to provide asynchronous notifications to interested
+            parties. WS-Eventing defines the simplest level of Web services interfaces for notification producers and
+            notification consumers including standard message exchanges to be implemented by service providers that wish
+            to act in these roles, along with operational requirements expected of them. It has a set of functions
+            supporting publish/subscribe required by robust, scalable enterprise applications including message brokering
+            and topic based subscription management.</p>
+        <p>WSO2 MB 2.0.1 supports WS-eventing. This sample shows you how to register a Web Service as an event receiver
+            and subscribe it to the message brokering server, together with how to publish messages to that subscription
+            you have made.</p>
+        <h2>Defining Web Service</h2>
+        <pre xml:space="preserve">
+
+            /*
+            *  Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+            *
+            *  WSO2 Inc. 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.
+            */
+
+
+            public class EventSinkService {
+                public void receive(String message){
+                    System.out.println("Got  the message ==> " + message);
+                }
+            }
+        </pre>
+        <h2>Host The Service And Start A Broker Client With Service URL</h2>
+        <p>Then this service has to be hosted in a server, and a broker client should be defined with that service url.</p>
+        <pre xml:space="preserve">
+
+            private AxisServer axisServer;
+            private BrokerClient brokerClient;
+            public void start() {
+                try {
+                    System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
+                    System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
+                    this.axisServer = new AxisServer();
+                    this.axisServer.deployService(EventSinkService.class.getName());
+                    this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
+                    // give time to start the simple http server
+                    try {
+                    Thread.sleep(2000);
+                    } catch (InterruptedException e) {
+                    }
+                } catch (AxisFault axisFault) {
+                    System.out.println("Can not start the server");
+                } catch (AuthenticationExceptionException e) {
+                    e.printStackTrace();
+                }
+            }
+        </pre>
+        <h2>Subscribe The Service To Receive Events</h2>
+        <p>Now we have to subscribe the above service to the broker to receive events. For that we use a "topic". Broker
+            client implementation allows you to subscribe a service to a topic in Message Broker. Here a topic named
+            "foo/bar" is used.</p>
+        <pre xml:space="preserve">
+
+            public String subscribe() {
+                // set the properties for ssl
+                try {
+                    return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
+                } catch (BrokerClientException e) {
+                    e.printStackTrace();
+                }
+                return null;
+            }
+        </pre>
+        <h2>Publish Messages </h2>
+        <p>When messages or events are published to the topic in message broker, it will be received by the web service.</p>
+        <pre xml:space="preserve">
+
+            public void publish(){
+                try {
+                    this.brokerClient.publish("foo/bar", getOMElementToSend());
+                } catch (AxisFault axisFault) {
+                    axisFault.printStackTrace();
+                }
+            }
+        </pre>
+        <p>As the service only doing flusing the message to the console, you should see the message getting printed in the console.</p>
+        <p>The full sample code will be like following.</p>
+        <pre xml:space="preserve">
+
+/*
+*  Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+*
+*  WSO2 Inc. 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.
+*/
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.engine.AxisServer;
+import org.wso2.carbon.event.client.broker.BrokerClient;
+import org.wso2.carbon.event.client.broker.BrokerClientException;
+import org.wso2.carbon.event.client.stub.generated.authentication.AuthenticationExceptionException;
+import java.rmi.RemoteException;
+            public class PubSubClient {
+                private AxisServer axisServer;
+                private BrokerClient brokerClient;
+                public void start() {
+                    try {
+                        System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
+                        System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
+                        this.axisServer = new AxisServer();
+                        this.axisServer.deployService(EventSinkService.class.getName());
+                        this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
+                        // give time to start the simple http server
+                        try {
+                            Thread.sleep(2000);
+                        } catch (InterruptedException e) {
+                        }
+                    } catch (AxisFault axisFault) {
+                        System.out.println("Can not start the server");
+                    } catch (AuthenticationExceptionException e) {
+                        e.printStackTrace();
+                    }
+                }
+                public String subscribe() {
+                    // set the properties for ssl
+                    try {
+                        return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
+                    } catch (BrokerClientException e) {
+                        e.printStackTrace();
+                    }
+                    return null;
+                }
+                public void publish(){
+                    try {
+                        this.brokerClient.publish("foo/bar", getOMElementToSend());
+                    } catch (AxisFault axisFault) {
+                        axisFault.printStackTrace();
+                    }
+                }
+                public void unsubscribe(String subscriptionID){
+                    try {
+                        this.brokerClient.unsubscribe(subscriptionID);
+                    } catch (RemoteException e) {
+                        e.printStackTrace();
+                    }
+                }
+                public void stop(){
+                    try {
+                        this.axisServer.stop();
+                    } catch (AxisFault axisFault) {
+                        axisFault.printStackTrace();
+                    }
+                }
+                public static void main(String[] args) {
+                    PubSubClient pubSubClient = new PubSubClient();
+                    pubSubClient.start();
+                    String subscriptionId = pubSubClient.subscribe();
+                    pubSubClient.publish();
+                    try {
+                        Thread.sleep(5000);
+                    } catch (InterruptedException e) {}
+                    pubSubClient.unsubscribe(subscriptionId);
+                    pubSubClient.stop();
+                }
+                private OMElement getOMElementToSend() {
+                    OMFactory omFactory = OMAbstractFactory.getOMFactory();
+                    OMNamespace omNamespace = omFactory.createOMNamespace("http://ws.sample.org", "ns1");
+                    OMElement receiveElement = omFactory.createOMElement("receive", omNamespace);
+                    OMElement messageElement = omFactory.createOMElement("message", omNamespace);
+                    messageElement.setText("Test publish message");
+                    receiveElement.addChild(messageElement);
+                    return receiveElement;
+                }
+}
+        </pre>
+        <p>Note: As you might have already comprehended WSO2 MB should be running when running the sample.</p>
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/docs/xdoc/samples_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples_index.xml b/products/cloud_controller/docs/xdoc/samples_index.xml
new file mode 100644
index 0000000..4a40608
--- /dev/null
+++ b/products/cloud_controller/docs/xdoc/samples_index.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Samples Guide Index
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        [
+        <a href="docs_index.html">Documentation Index</a>
+        ]
+        <h1>Running the WSO2 Message Broker Server (MB) Samples</h1>
+
+        <h2>
+            <a name="TOC">Table of Contents</a>
+        </h2>
+
+        <div class="section-content">
+            <ul>
+                <li>
+                    <a href="samples_index.html#Overview">Overview</a>
+                </li>
+                <li>
+                    <a href="samples/jms_queue_sample.html">JMS Queue Sample</a>
+                </li>
+                <li>
+                    <a href="samples/jms_topic_sample.html">JMS Topic Sample</a>
+                </li>
+                <li>
+                    <a href="samples/jms_transport_sample.html">JMS Transport Sample</a>
+                </li>
+                <li>
+                    <a href="samples/web_service_client_sample.html">Web Service Eventing Sample</a>
+                </li>
+            </ul>
+        </div>
+        <h2 id="Overview">Overview</h2>
+        <p>
+            This set of samples demonstrates the features in Message Broker product to use in
+            various situations. We will use JMS APIs with Message Broker to
+            publish,subscribe messages.
+        </p>
+        <p>
+            The source code used in the samples can be found in $CARBON_HOME/samples.
+        </p>
+
+        <p>
+            Please refers the
+            <a href="user_guide.html">User Guide</a>
+            to get familiar with Message Broker product.
+        </p>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/docs/xdoc/source-repository.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/source-repository.xml b/products/cloud_controller/docs/xdoc/source-repository.xml
new file mode 100644
index 0000000..4e9b5af
--- /dev/null
+++ b/products/cloud_controller/docs/xdoc/source-repository.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Source Repository
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+    <body>
+        [ <a href="docs_index.html"> Documentation Index </a> ]
+        <h1>WSO2 Message Broker Server  (MB) Source Repository</h1>
+        WSO2 MB is developed on top of the revolutionary WSO2 Carbon platform. You might need the
+        source of the Carbon platform as well apart from the MB source code. Please note that both
+        MB and the Carbon platform is open source and the code is available under the Apache
+        Software License v2.0.
+
+        <h2>Overview</h2>
+        <p>This project uses <a href="http://subversion.tigris.org/">Subversion</a>
+        to manage its source code. Instructions on Subversion use can be found at
+            <a href="http://svnbook.red-bean.com/">http://svnbook.red-bean.com/</a>.</p>
+
+        <h2>Source code of the MB 1.0.0 release</h2>
+        <p>The following is a link to the online source tag of the WSO2 MB 1.0.0 release.</p>
+        <div class="source">
+            <pre><a href="http://svn.wso2.org/repos/wso2/tags/MB/java/3.0.0/">http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0/</a></pre>
+        </div>
+        <p>The complete source including the carbon platform can be checked out anonymously from
+            SVN with this command:</p>
+        <div class="source">
+            <pre>$ svn checkout http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0 wso2mb</pre>
+        </div>
+
+        <p>This code base contains the MB product source code inside the directory "product" and
+        it also contains the source for the platform under the directory "carbon-pltform". Further
+        there will be a "build.sh" script to build the MB with the platform.</p>
+
+        <p>This script accepts any of the maven related system properties, but the property to skip
+         the tests has been shortened to "-ts", for example to build the MB with the platform on
+         skipping tests the command is;</p>
+
+        <div class="source">
+            <pre>$ ./build.sh -ts</pre>
+        </div>
+
+        <p>To build off-line with this build script you can pass in the "-o" option. If you just
+        need to build either the product or a specific part of the platform (for example Axis2)
+        you just need to traverse to that directory and use maven to build any of the projects.</p>
+
+        <h2>Source code of the WSO2 MB trunk</h2>
+        <p>Everyone can access the Subversion repository via HTTPS, but Committers must checkout
+            the Subversion repository via HTTPS.
+        </p>
+        <div class="source">
+            <pre>$ svn checkout  https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
+        </div>
+
+        <p>The Carbon framework related source code can be checked out from the
+            following commands.</p>
+
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/core carbon</pre>
+        </div>
+
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/components carbon-components</pre>
+        </div>
+
+        <p>The Carbon project is the root project of the OSGi platform on which all the Java
+            product stack is built on top of, and the carbon-components contains all the components
+            not just MB specific components. So you obviously need to build just the set of
+            components required by the MB, which can be achieved through;
+        </p>
+
+        <div class="source">
+            <pre>$ mvn clean install -Dproduct=MB</pre>
+        </div>
+
+        <p>To commit changes to the repository, execute the following command (svn will prompt
+            you for your password)
+        </p>
+        <div class="source">
+            <pre>$ svn commit --username your-username -m "A message"</pre>
+        </div>
+
+        <h2>Access from behind a firewall</h2>
+        <p>For those users who are stuck behind a corporate firewall which is blocking http access
+            to the Subversion repository, you can try to access it via the developer connection:
+        </p>
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
+        </div>
+        <h2>Access through a proxy</h2>
+        <p>The Subversion client can go through a proxy, if you configure it to do so.
+            First, edit your "servers" configuration file to indicate which proxy to use. The
+            files location depends on your operating system. On Linux or Unix it is
+            located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion".
+            (Try "echo %APPDATA%", note this is a hidden directory.)
+        </p>
+        <p>There are comments in the file explaining what to do. If you don't have that file, get
+            the latest Subversion client and run any command; this will cause the configuration
+            directory and template files to be created.
+        </p>
+        <p>Example : Edit the 'servers' file and add something like :</p>
+        <div class="source">
+            <pre>[global]
+http-proxy-host = your.proxy.name
+http-proxy-port = 3128
+            </pre>
+        </div>
+    </body>
+</html>
+      

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif b/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif
new file mode 100644
index 0000000..6d0a579
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico b/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico
new file mode 100644
index 0000000..f7b2bbf
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif b/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif
new file mode 100644
index 0000000..8754de1
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif b/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif
new file mode 100644
index 0000000..d81f1fe
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif b/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif
new file mode 100644
index 0000000..fb478bf
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif b/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif
new file mode 100644
index 0000000..9e992cc
Binary files /dev/null and b/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties b/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
new file mode 100644
index 0000000..1f08cfd
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
@@ -0,0 +1,4 @@
+product.name=WSO2 Cloud Controller
+product.key=CC
+product.version=1.0.0
+carbon.version=4.1.1

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml b/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
new file mode 100755
index 0000000..6c8f0a8
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
@@ -0,0 +1,523 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<axisconfig name="AxisJava2.0">
+    
+    <!-- ================================================= -->
+    <!--                  Parameters                       -->
+    <!-- ================================================= -->
+
+    <!-- This will give out the timout of the configuration contexts, in milliseconds -->
+    <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter>
+
+    <!-- Synapse Configuration file location relative to CARBON_HOME -->
+    <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter>
+    <!-- Synapse Home parameter -->
+    <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
+    <!-- Resolve root used to resolve synapse references like schemas inside a WSDL -->
+    <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter>
+    <!-- Synapse Server name parameter -->
+    <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter>
+   
+
+    <!-- ================================================= -->
+    <!--                Message Formatters                 -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to message formatter mapping can be used to implement support -->
+    <!-- for different message format serializations in Axis2. These message formats are -->
+    <!-- expected to be resolved based on the content type. -->
+    <messageFormatters>
+        <!--messageFormatter contentType="application/xml"
+                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>-->
+        <!--messageFormatter contentType="text/xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/soap+xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/-->
+        <messageFormatter contentType="multipart/related"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/txt"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/html"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <!--messageFormatter contentType="x-application/hessian"
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+        <!--messageFormatter contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+
+        <messageFormatter contentType="text/css"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="image/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="img/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/jpeg"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/png"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/ico"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/x-icon"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+	    <messageFormatter contentType="application/x-javascript"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/x-shockwave-flash"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/atom+xml"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/x-www-form-urlencoded"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/xhtml+xml"
+                              class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/octet-stream"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="multipart/form-data"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <!--JSON Message Formatters-->
+        <messageFormatter contentType="application/json"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/json/badgerfish"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+
+        <messageFormatter contentType=".*"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+    </messageFormatters>
+
+    <!-- ================================================= -->
+    <!--                Message Builders                   -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to builder mapping can be used to implement support for -->
+    <!-- different message formats in Axis2. These message formats are expected to be -->
+    <!-- resolved based on the content type. -->
+    <messageBuilders>
+        <messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/txt"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <messageBuilder contentType="multipart/related"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/plain"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="x-application/hessian"
+                        class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+        <!--messageBuilder contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+
+        <!--JSON Message Builders-->
+        <messageBuilder contentType="application/json"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/json/badgerfish"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType="text/html"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/css"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="image/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="img/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/jpeg"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/png"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/ico"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/x-icon"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+	    <messageBuilder contentType="application/x-javascript"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-shockwave-flash"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/atom+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-www-form-urlencoded"
+                            class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/xhtml+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/octet-stream"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType=".*"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+    </messageBuilders>
+
+    <!-- ================================================= -->
+    <!--             Transport Ins (Listeners)             -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+   <transportReceiver name="http" class="org.wso2.carbon.transport.passthru.PassThroughHttpListener">
+      <parameter name="port">8280</parameter>
+      <parameter name="non-blocking"> true</parameter>
+   </transportReceiver>
+   <transportReceiver name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    </transportReceiver>
+
+    <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
+        <parameter name="port" locked="false">8280</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+    <!--/transportReceiver-->
+
+    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions -->
+    <!--transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+        <!--parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter-->
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    <!--/transportReceiver-->
+
+    <!-- ================================================= -->
+    <!--             Transport Outs (Senders)              -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+    <transportSender name="http"  class="org.wso2.carbon.transport.passthru.PassThroughHttpSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="warnOnHTTP500" locked="false">*</parameter>
+        <!--parameter name="http.proxyHost" locked="false">localhost</parameter>
+        <parameter name="http.proxyPort" locked="false">3128</parameter>
+        <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter-->
+    </transportSender>
+    <transportSender name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter>
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+     </transportSender>
+    <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+    </transportSender>
+    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter-->
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+    <!--/transportSender-->
+
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+
+    <!-- ================================================= -->
+    <!--                Clustering                         -->
+    <!-- ================================================= -->
+    <!--
+     To enable clustering for this node, set the value of "enable" attribute of the "clustering"
+     element to "true". The initialization of a node in the cluster is handled by the class
+     corresponding to the "class" attribute of the "clustering" element. It is also responsible for
+     getting this node to join the cluster.
+     -->
+    <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">
+
+        <!--
+           This parameter indicates whether the cluster has to be automatically initalized
+           when the AxisConfiguration is built. If set to "true" the initialization will not be
+           done at that stage, and some other party will have to explictly initialize the cluster.
+        -->
+        <parameter name="AvoidInitiation">true</parameter>
+
+        <!--
+           The membership scheme used in this setup. The only values supported at the moment are
+           "multicast" and "wka"
+
+           1. multicast - membership is automatically discovered using multicasting
+           2. wka - Well-Known Address based multicasting. Membership is discovered with the help
+                    of one or more nodes running at a Well-Known Address. New members joining a
+                    cluster will first connect to a well-known node, register with the well-known node
+                    and get the membership list from it. When new members join, one of the well-known
+                    nodes will notify the others in the group. When a member leaves the cluster or
+                    is deemed to have left the cluster, it will be detected by the Group Membership
+                    Service (GMS) using a TCP ping mechanism.
+        -->
+        <parameter name="membershipScheme">wka</parameter>
+
+        <!--
+         The clustering domain/group. Nodes in the same group will belong to the same multicast
+         domain. There will not be interference between nodes in different groups.
+        -->
+        <parameter name="domain">wso2.carbon.lb.domain</parameter>
+
+        <!--
+           When a Web service request is received, and processed, before the response is sent to the
+           client, should we update the states of all members in the cluster? If the value of
+           this parameter is set to "true", the response to the client will be sent only after
+           all the members have been updated. Obviously, this can be time consuming. In some cases,
+           such this overhead may not be acceptable, in which case the value of this parameter
+           should be set to "false"
+        -->
+        <parameter name="synchronizeAll">false</parameter>
+
+        <!--
+          The maximum number of times we need to retry to send a message to a particular node
+          before giving up and considering that node to be faulty
+        -->
+        <parameter name="maxRetries">10</parameter>
+
+        <!-- The multicast address to be used -->
+        <parameter name="mcastAddress">228.0.0.4</parameter>
+
+        <!-- The multicast port to be used -->
+        <parameter name="mcastPort">45564</parameter>
+
+        <!-- The frequency of sending membership multicast messages (in ms) -->
+        <parameter name="mcastFrequency">500</parameter>
+
+        <!-- The time interval within which if a member does not respond, the member will be
+         deemed to have left the group (in ms)
+         -->
+        <parameter name="memberDropTime">3000</parameter>
+
+        <!--
+           The IP address of the network interface to which the multicasting has to be bound to.
+           Multicasting would be done using this interface.
+        -->
+        <parameter name="mcastBindAddress">127.0.0.1</parameter>
+
+        <!-- The host name or IP address of this member -->
+        
+        <!--parameter name="localMemberHost">127.0.0.1</parameter-->
+        
+
+        <!--
+        The TCP port used by this member. This is the port through which other nodes will
+        contact this member
+         -->
+        <parameter name="localMemberPort">4000</parameter>
+
+        <!--
+        Preserve message ordering. This will be done according to sender order.
+        -->
+        <parameter name="preserveMessageOrder">false</parameter>
+
+        <!--
+        Maintain atmost-once message processing semantics
+        -->
+        <parameter name="atmostOnceMessageSemantics">false</parameter>
+         
+        <!--
+           This interface is responsible for handling state replication. The property changes in
+           the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster.
+
+           The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or
+           suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern
+           "*" indicates that all properties in a particular context should not be replicated.
+
+            The "enable" attribute indicates whether context replication has been enabled
+        -->
+        <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager"
+                      enable="false">
+            <replication>
+                <defaults>
+                    <exclude name="local_*"/>
+                    <exclude name="LOCAL_*"/>
+                </defaults>
+                <context class="org.apache.axis2.context.ConfigurationContext">
+                    <exclude name="local_*"/>
+                    <exclude name="UseAsyncOperations"/>
+                    <exclude name="SequencePropertyBeanMap"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceGroupContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+            </replication>
+        </stateManager>
+    </clustering>
+
+    <!-- ================================================= -->
+    <!--                    Phases                         -->
+    <!-- ================================================= -->
+
+    <phaseOrder type="InFlow">
+        <!--  System pre defined phases       -->
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--  System pre defined phases       -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="OperationOutPhase"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+    <phaseOrder type="InFaultFlow">
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OperationInFaultPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFaultFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <!-- Must Understand Header processing phase -->
+        <phase name="MUPhase"/>
+        <phase name="OperationOutFaultPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+</axisconfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties b/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
new file mode 100644
index 0000000..2ef0505
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
@@ -0,0 +1,55 @@
+#
+#  Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
+#
+#  Licensed 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.
+#
+
+################################################################################
+## DataSources Configuration
+################################################################################
+#synapse.datasources=lookupds,reportds
+#synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
+#synapse.datasources.providerPort=2199
+## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
+##synapse.datasources.providerUrl=rmi://localhost:2199
+#
+#synapse.datasources.lookupds.registry=Memory
+#synapse.datasources.lookupds.type=BasicDataSource
+#synapse.datasources.lookupds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.lookupds.url=jdbc:derby://localhost:1527/lookupdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.lookupds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.lookupds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.lookupds.password=esb
+#synapse.datasources.lookupds.dsName=lookupdb
+#synapse.datasources.lookupds.maxActive=100
+#synapse.datasources.lookupds.maxIdle=20
+#synapse.datasources.lookupds.maxWait=10000
+#
+#synapse.datasources.reportds.registry=JNDI
+#synapse.datasources.reportds.type=PerUserPoolDataSource
+#synapse.datasources.reportds.cpdsadapter.factory=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.className=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.name=cpds
+#synapse.datasources.reportds.dsName=reportdb
+#synapse.datasources.reportds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.reportds.url=jdbc:derby://localhost:1527/reportdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.reportds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.reportds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.reportds.password=esb
+#synapse.datasources.reportds.maxActive=100
+#synapse.datasources.reportds.maxIdle=20
+#synapse.datasources.reportds.maxWait=10000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
new file mode 100644
index 0000000..1192bbd
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<!-- Default fault sequence shipped with the Apache Synapse -->
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
+
+    <!-- Log the message at the full log level with the ERROR_MESSAGE and the ERROR_CODE-->
+    <!-- log level="full">
+        <property name="MESSAGE" value="Executing default 'fault' sequence"/>
+        <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
+        <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
+    </log -->
+
+    <!-- Drops the messages by default if there is a fault -->
+    <script language="js"><![CDATA[
+        mc.setPayloadXML(
+           <{mc.getProperty("SERVICENAME")}Response xmlns="org.wso2.gateway">
+            <Timestamp>{new Date()}</Timestamp>
+            <Ack>Failure</Ack>
+            <Errors>
+             <ShortMessage>Gateway Error</ShortMessage>
+             <LongMessage>{mc.getProperty("ERROR_MESSAGE")}</LongMessage>
+             <ErrorCode>500</ErrorCode>
+             <SeverityCode>Error</SeverityCode>
+             <ErrorClassification>RequestError</ErrorClassification>
+            </Errors>
+            <ServiceName>{mc.getProperty("SERVICENAME")}</ServiceName>
+            <ResponseCode>{mc.getProperty("HTTP_SC")}</ResponseCode>
+            <ContentType>{mc.getProperty("Content-Type")}</ContentType>
+            <Version>1.5.1</Version>
+           </{mc.getProperty("SERVICENAME")}Response>
+        );
+      ]]></script>
+    <switch source="get-property('ERROR_CODE')">
+        <case regex="101504">   <!-- TIMEOUT ERROR -->
+            <property name="HTTP_SC" value="504" scope="axis2"/>
+            <sequence key="seq_timeout"/>
+        </case>
+        <case regex="303001">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <case regex="111503">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <default>
+            <property name="HTTP_SC" value="500" scope="axis2"/>
+        </default>
+    </switch>
+    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
+    <header name="To" action="remove"/>
+    <property name="RESPONSE" value="true"/>
+    <property name="messageType" value="text/xml" scope="axis2"/>
+    <property name="ContentType" value="text/xml" scope="axis2"/>
+
+    <send/>
+
+</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
new file mode 100755
index 0000000..f3da986
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~  Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
+  ~
+  ~  WSO2 Inc. 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.
+  -->
+
+<!-- The default synapse configuration shipped with the WSO2 Elastic  Load Balancer
+ -->
+
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+</definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6fdeacea/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties b/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
new file mode 100755
index 0000000..36e21c2
--- /dev/null
+++ b/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
@@ -0,0 +1,35 @@
+#
+#  Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
+#
+#  Licensed 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.
+#
+
+#synapse.threads.core = 20
+#synapse.threads.max = 100
+#synapse.threads.keepalive = 5
+#synapse.threads.qlen = 10
+#synapse.threads.group = synapse-thread-group
+#synapse.threads.idprefix = SynapseWorker
+
+synapse.sal.endpoints.sesssion.timeout.default=600000
+
+#In memory statistics cleaning state 
+statistics.clean.enable=false
+
+# Dependency tracking Synapse observer
+# Comment out to disable dependency management
+synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker
+
+# User defined wsdlLocator/Schema Resolver Implementations.
+# synapse.wsdl.resolver=org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
+# synapse.schema.resolver=org.wso2.carbon.mediation.initializer.RegistryXmlSchemaURIResolver
\ No newline at end of file