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/18 11:11:44 UTC
[2/9] applied
0001-refactor-elb-moved-contents-from-products-elb-2.0.5-.patch
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/assembly/bin.xml b/products/elb/modules/distribution/src/main/assembly/bin.xml
new file mode 100755
index 0000000..668dd9b
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/assembly/bin.xml
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+<assembly>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
+ <outputDirectory>wso2elb-${pom.version}</outputDirectory>
+ <excludes>
+ <exclude>**/*.sh</exclude>
+ <exclude>**/conf/axis2/axis2.xml</exclude>
+ <exclude>**/conf/mgt-transports.xml</exclude>
+ <exclude>**/conf/synapse.xml</exclude>
+ <exclude>**/conf/cipher-text.properties</exclude>
+ <exclude>**/log4j.properties</exclude>
+ <exclude>**/native/*</exclude>
+ <exclude>**/services/sample01.aar</exclude>
+ <exclude>**/repository/services/version/**</exclude>
+ <exclude>**/version.txt</exclude>
+ <exclude>**/wso2server.bat</exclude>
+ <exclude>**/README.txt</exclude>
+ <exclude>**/LICENSE.txt</exclude>
+ <exclude>**/INSTALL.txt</exclude>
+ <exclude>**/release-notes.html</exclude>
+ <exclude>**/carbon.xml</exclude>
+ <exclude>**/wsdl2java.*</exclude>
+ <exclude>**/java2wsdl.*</exclude>
+ <exclude>**/java2wsdl.*</exclude>
+ <exclude>**/tcpmon.*</exclude>
+ <exclude>**/build.xml</exclude>
+ <exclude>**/chpasswd.*</exclude>
+ <exclude>**/carbondump.*</exclude>
+ <exclude>**/ciphertool.*</exclude>
+ <exclude>**/jgroups-s3_ping-aws.xml</exclude>
+ <exclude>**/tomcat-users.xml</exclude>
+ <exclude>**/axis2/tenant-axis2.xml</exclude>
+ <exclude>**/authenticators.xml</exclude>
+ <exclude>**/embedded-ldap.xml</exclude>
+ <exclude>**/user-mgt.xml</exclude>
+ <exclude>**/*.aar</exclude>
+ <exclude>**/webapp-mode/**</exclude>
+ <exclude>**/repository/components/plugins/*.ui*</exclude>
+ <!--exclude>**/samples/*</exclude-->
+ </excludes>
+ </fileSet>
+ <!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
+ <fileSet>
+ <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
+ <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
+ <includes>
+ <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/conf/synapse-configs</directory>
+ <outputDirectory>wso2elb-${pom.version}/repository/deployment/server/synapse-configs
+ </outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/cartridges</directory>
+ <outputDirectory>wso2elb-${pom.version}/repository/deployment/server/cartridges</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/services</directory>
+ <outputDirectory>wso2elb-${pom.version}/repository/deployment/server/services</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/</directory>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/etc</outputDirectory>
+ <includes>
+ <include>*.xsd</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <dependencySets>
+ <!-- use the new tool to create a bundles -->
+ <dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
+ <includes>
+ <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
+ </includes>
+ </dependencySet>
+ <!--dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/samples/axis2Client/client_repo/modules
+ </outputDirectory>
+ <includes>
+ <include>org.apache.axis2:addressing:mar</include>
+ <include>org.apache.rampart:rampart:mar</include>
+ <include>org.apache.sandesha2:sandesha2:mar</include>
+ </includes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+ </outputFileNameMapping>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/samples/axis2Server/repository/modules
+ </outputDirectory>
+ <includes>
+ <include>org.apache.axis2:addressing:mar</include>
+ <include>org.apache.rampart:rampart:mar</include>
+ <include>org.apache.sandesha2:sandesha2:mar</include>
+ </includes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+ </outputFileNameMapping>
+ </dependencySet-->
+ <dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/repository/axis2/client/lib</outputDirectory>
+ <includes>
+ <include>bouncycastle:bcprov-jdk15:jar</include>
+ </includes>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+ </outputFileNameMapping>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/repository/deployment/client/modules
+ </outputDirectory>
+ <includes>
+ <include>org.apache.rampart:rampart:mar</include>
+ </includes>
+ </dependencySet>
+ <!-- MB Client libs -->
+ <dependencySet>
+ <outputDirectory>wso2elb-${pom.version}/repository/components/dropins</outputDirectory>
+ <includes>
+ <include>org.wso2.andes.wso2:andes-client:jar</include>
+ <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
+ <!--include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
+ <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include-->
+ </includes>
+ </dependencySet>
+ </dependencySets>
+
+ <files>
+ <file>
+ <source>src/main/bin/wso2server.sh</source>
+ <outputDirectory>wso2elb-${pom.version}/bin</outputDirectory>
+ <destName>wso2server.sh</destName>
+ <fileMode>755</fileMode>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/bin/wso2server.bat</source>
+ <outputDirectory>wso2elb-${pom.version}/bin</outputDirectory>
+ <destName>wso2server.bat</destName>
+ <fileMode>755</fileMode>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>
+ ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml
+ </source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ </file>
+ <file>
+ <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/zoo.cfg</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/etc</outputDirectory>
+ </file>
+ <file>
+ <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/coordination-client-config.xml</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/etc</outputDirectory>
+ </file>
+ <file>
+ <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cloud-controller.xml</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/</outputDirectory>
+ </file>
+ <file>
+ <source>src/main/conf/user-mgt.xml</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>user-mgt.xml</destName>
+ </file>
+ <file>
+ <source>src/main/conf/embedded-ldap.xml</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>embedded-ldap.xml</destName>
+ </file>
+ <file>
+ <source>src/main/conf/axis2.xml</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/axis2</outputDirectory>
+ <destName>axis2.xml</destName>
+ </file>
+ <file>
+ <source>src/main/conf/loadbalancer.conf</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>loadbalancer.conf</destName>
+ </file>
+ <file>
+ <source>src/main/conf/log4j.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>log4j.properties</destName>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/conf/synapse.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>synapse.properties</destName>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/conf/cipher-text.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/lib</outputDirectory>
+ <destName>cipher-text.properties</destName>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/conf/nhttp.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>nhttp.properties</destName>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/conf/passthru-http.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>passthru-http.properties</destName>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>src/main/conf/datasources.properties</source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf</outputDirectory>
+ <destName>datasources.properties</destName>
+ <filtered>true</filtered>
+ </file>
+
+ <file>
+ <source>../../LICENSE.txt</source>
+ <outputDirectory>wso2elb-${pom.version}</outputDirectory>
+ <filtered>true</filtered>
+ <fileMode>644</fileMode>
+ </file>
+ <file>
+ <source>../../README.txt</source>
+ <outputDirectory>wso2elb-${pom.version}</outputDirectory>
+ <filtered>true</filtered>
+ <fileMode>644</fileMode>
+ </file>
+ <file>
+ <source>../../INSTALL.txt</source>
+ <outputDirectory>wso2elb-${pom.version}</outputDirectory>
+ <filtered>true</filtered>
+ <fileMode>644</fileMode>
+ </file>
+ <file>
+ <source>../../docs/xdoc/release-notes.xml</source>
+ <outputDirectory>wso2elb-${pom.version}</outputDirectory>
+ <destName>release-notes.html</destName>
+ <fileMode>644</fileMode>
+ </file>
+ <!--file>
+ <source>target/wso2carbon-core-${carbon.patch.version}/bin/README.txt</source>
+ <outputDirectory>wso2elb-${pom.version}/bin/</outputDirectory>
+ <filtered>true</filtered>
+ <fileMode>644</fileMode>
+ </file-->
+ <file>
+ <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
+ <outputDirectory>wso2elb-${pom.version}/bin/</outputDirectory>
+ <filtered>true</filtered>
+ <fileMode>644</fileMode>
+ </file>
+ <!--file>
+ <source>target/wso2carbon-core-${carbon.patch.version}/bin/wso2server.bat
+ </source>
+ <outputDirectory>wso2elb-${pom.version}/bin/</outputDirectory>
+ <filtered>true</filtered>
+ </file-->
+ <file>
+ <source>
+ target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml
+ </source>
+ <outputDirectory>wso2elb-${pom.version}/repository/conf/</outputDirectory>
+ <filtered>true</filtered>
+ </file>
+ </files>
+</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/assembly/dist.xml b/products/elb/modules/distribution/src/main/assembly/dist.xml
new file mode 100644
index 0000000..8e75c32
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/assembly/dist.xml
@@ -0,0 +1,37 @@
+<!--
+ ~ 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.
+ -->
+<assembly>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <!-- Copying p2 profile and osgi bundles-->
+ <fileSet>
+ <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
+ <outputDirectory>wso2elb-${pom.version}/repository/components</outputDirectory>
+ <excludes>
+ <exclude>**/eclipse.ini</exclude>
+ <exclude>**/*.lock</exclude>
+ <exclude>**/.data</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/synapse-samples*</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/assembly/docs.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/assembly/docs.xml b/products/elb/modules/distribution/src/main/assembly/docs.xml
new file mode 100644
index 0000000..1b0fe65
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/assembly/docs.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+<assembly>
+ <id>docs</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>target/site</directory>
+ <outputDirectory>wso2elb-${pom.version}-docs</outputDirectory>
+ <fileMode>755</fileMode>
+ </fileSet>
+ </fileSets>
+</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/assembly/filter.properties b/products/elb/modules/distribution/src/main/assembly/filter.properties
new file mode 100644
index 0000000..e91e50c
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/assembly/filter.properties
@@ -0,0 +1,8 @@
+product.name=WSO2 ELB
+product.key=ELB
+product.version=2.0.5
+
+carbon.version=4.1.3
+lb.version=2.0.5
+default.server.role=ElasticLoadBalancer
+bundle.creators=org.wso2.carbon.mediator.bridge.MediatorBundleCreator
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/assembly/src.xml b/products/elb/modules/distribution/src/main/assembly/src.xml
new file mode 100644
index 0000000..6a4e705
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/assembly/src.xml
@@ -0,0 +1,72 @@
+<!--
+ ~ 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.
+ -->
+<assembly>
+ <id>src</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/sources</directory>
+ <outputDirectory>wso2elb-${pom.version}-src</outputDirectory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>../..</directory>
+ <outputDirectory>wso2elb-${pom.version}-src</outputDirectory>
+ <includes>
+ <include>modules/**/*</include>
+ <include>**/pom.xml</include>
+ </includes>
+ <excludes>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/build</exclude>
+ <exclude>**/build/**/*</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.wtpmodules</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>../../LICENSE.txt</source>
+ <outputDirectory>wso2elb-${pom.version}-src</outputDirectory>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>../../README.txt</source>
+ <outputDirectory>wso2elb-${pom.version}-src</outputDirectory>
+ <filtered>true</filtered>
+ </file>
+ <file>
+ <source>../../INSTALL.txt</source>
+ <outputDirectory>wso2elb-${pom.version}-src</outputDirectory>
+ <filtered>true</filtered>
+ </file>
+ </files>
+</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/bin/wso2server.bat
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/bin/wso2server.bat b/products/elb/modules/distribution/src/main/bin/wso2server.bat
new file mode 100644
index 0000000..3274bc6
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/bin/wso2server.bat
@@ -0,0 +1,170 @@
+@echo off
+
+REM ---------------------------------------------------------------------------
+REM Copyright 2005-2009 WSO2, Inc. http://www.wso2.org
+REM
+REM Licensed under the Apache License, Version 2.0 (the "License");
+REM you may not use this file except in compliance with the License.
+REM You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+
+rem ---------------------------------------------------------------------------
+rem Main Script for WSO2 Carbon
+rem
+rem Environment Variable Prequisites
+rem
+rem CARBON_HOME Home of CARBON installation. If not set I will try
+rem to figure it out.
+rem
+rem JAVA_HOME Must point at your Java Development Kit installation.
+rem
+rem JAVA_OPTS (Optional) Java runtime options used when the commands
+rem is executed.
+rem ---------------------------------------------------------------------------
+
+rem ----- if JAVA_HOME is not set we're not happy ------------------------------
+:checkJava
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+goto checkServer
+
+:noJavaHome
+echo "You must set the JAVA_HOME variable before running CARBON."
+goto end
+
+rem ----- Only set CARBON_HOME if not already set ----------------------------
+:checkServer
+rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
+if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
+SET curDrive=%cd:~0,1%
+SET wsasDrive=%CARBON_HOME:~0,1%
+if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
+
+rem find CARBON_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
+
+set AXIS2_HOME=%CARBON_HOME%
+goto updateClasspath
+
+:noServerHome
+echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
+goto end
+
+rem ----- update classpath -----------------------------------------------------
+:updateClasspath
+
+setlocal EnableDelayedExpansion
+cd %CARBON_HOME%
+set CARBON_CLASSPATH=
+FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
+
+set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
+
+FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
+
+rem ----- Process the input command -------------------------------------------
+
+rem Slurp the command line arguments. This loop allows for an unlimited number
+rem of arguments (up to the command line limit, anyway).
+
+
+:setupArgs
+if ""%1""=="""" goto doneStart
+
+if ""%1""==""-run"" goto commandLifecycle
+if ""%1""==""--run"" goto commandLifecycle
+if ""%1""==""run"" goto commandLifecycle
+
+if ""%1""==""-restart"" goto commandLifecycle
+if ""%1""==""--restart"" goto commandLifecycle
+if ""%1""==""restart"" goto commandLifecycle
+
+if ""%1""==""debug"" goto commandDebug
+if ""%1""==""-debug"" goto commandDebug
+if ""%1""==""--debug"" goto commandDebug
+
+if ""%1""==""version"" goto commandVersion
+if ""%1""==""-version"" goto commandVersion
+if ""%1""==""--version"" goto commandVersion
+
+shift
+goto setupArgs
+
+rem ----- commandVersion -------------------------------------------------------
+:commandVersion
+shift
+type "%CARBON_HOME%\bin\version.txt"
+type "%CARBON_HOME%\bin\wso2carbon-version.txt"
+goto end
+
+rem ----- commandDebug ---------------------------------------------------------
+:commandDebug
+shift
+set DEBUG_PORT=%1
+if "%DEBUG_PORT%"=="" goto noDebugPort
+if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
+set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
+echo Please start the remote debugging client to continue...
+goto findJdk
+
+:noDebugPort
+echo Please specify the debug port after the --debug option
+goto end
+
+
+:doneStart
+if "%OS%"=="Windows_NT" @setlocal
+if "%OS%"=="WINNT" @setlocal
+
+rem ---------- Handle the SSL Issue with proper JDK version --------------------
+rem find the version of the jdk
+:findJdk
+
+set CMD=RUN %*
+
+:checkJdk16
+"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
+IF ERRORLEVEL 1 goto unknownJdk
+goto jdk16
+
+:unknownJdk
+echo Starting WSO2 Carbon (in unsupported JDK)
+echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
+goto jdk16
+
+:jdk16
+goto runServer
+
+rem ----------------- Execute The Requested Command ----------------------------
+
+:runServer
+cd %CARBON_HOME%
+
+rem ---------- Add jars to classpath ----------------
+
+set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
+
+set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
+
+set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms1500m -Xmx3000m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%CARBON_HOME%\repository\logs\heap-dump.hprof -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dloadbalancer.conf="file:///%CARBON_HOME%/repository/conf/loadbalancer.conf" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -
Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8
+
+:runJava
+echo JAVA_HOME environment variable is set to %JAVA_HOME%
+echo CARBON_HOME environment variable is set to %CARBON_HOME%
+"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
+if "%ERRORLEVEL%"=="121" goto runJava
+:end
+goto endlocal
+
+:endlocal
+
+:END
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/bin/wso2server.sh
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/bin/wso2server.sh b/products/elb/modules/distribution/src/main/bin/wso2server.sh
new file mode 100644
index 0000000..253a33f
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/bin/wso2server.sh
@@ -0,0 +1,299 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Copyright WSO2, Inc. http://www.wso2.org
+#
+# 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.
+
+# ----------------------------------------------------------------------------
+# Main Script for the WSO2 Carbon Server
+#
+# Environment Variable Prequisites
+#
+# CARBON_HOME Home of WSO2 Carbon installation. If not set I will try
+# to figure it out.
+#
+# JAVA_HOME Must point at your Java Development Kit installation.
+#
+# JAVA_OPTS (Optional) Java runtime options used when the commands
+# is executed.
+#
+# NOTE: Borrowed generously from Apache Tomcat startup scripts.
+# -----------------------------------------------------------------------------
+
+# OS specific support. $var _must_ be set to either true or false.
+
+cygwin=false;
+darwin=false;
+os400=false;
+mingw=false;
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+MINGW*) mingw=true;;
+OS400*) os400=true;;
+Darwin*) darwin=true
+ if [ -z "$JAVA_VERSION" ] ; then
+ JAVA_VERSION="CurrentJDK"
+ else
+ echo "Using Java version: $JAVA_VERSION"
+ fi
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
+ fi
+ ;;
+esac
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`/"$link"
+ fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+# Only set CARBON_HOME if not already set
+[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
+
+# Set AXIS2_HOME. Needed for One Click JAR Download
+AXIS2_HOME=$CARBON_HOME
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+ [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+fi
+
+# For OS400
+if $os400; then
+ # Set job priority to standard for interactive (interactive - 6) by using
+ # the interactive priority - 6, the helper threads that respond to requests
+ # will be running at the same priority as interactive jobs.
+ COMMAND='chgjob job('$JOBNAME') runpty(6)'
+ system $COMMAND
+
+ # Enable multi threading
+ QIBM_MULTI_THREADED=Y
+ export QIBM_MULTI_THREADED
+fi
+
+# For Migwn, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$CARBON_HOME" ] &&
+ CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+ [ -n "$AXIS2_HOME" ] &&
+ CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+ # TODO classpath?
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD=java
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly."
+ echo " CARBON cannot execute $JAVACMD"
+ exit 1
+fi
+
+# if JAVA_HOME is not set we're not happy
+if [ -z "$JAVA_HOME" ]; then
+ echo "You must set the JAVA_HOME variable before running CARBON."
+ exit 1
+fi
+
+# ----- Process the input command ----------------------------------------------
+for c in $*
+do
+ if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
+ CMD="--debug"
+ continue
+ elif [ "$CMD" = "--debug" ]; then
+ if [ -z "$PORT" ]; then
+ PORT=$c
+ fi
+ elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
+ CMD="--n"
+ continue
+ elif [ "$CMD" = "--n" ]; then
+ if [ -z "$INSTANCES" ]; then
+ INSTANCES=$c
+ fi
+ elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
+ CMD="stop"
+ elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
+ CMD="start"
+ elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
+ CMD="console"
+ elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
+ CMD="version"
+ elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
+ CMD="restart"
+ elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
+ CMD="dump"
+ elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
+ CMD="test"
+ elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
+ CMD="status"
+ fi
+done
+
+if [ "$CMD" = "--debug" ]; then
+ if [ "$PORT" = "" ]; then
+ echo " Please specify the debug port after the --debug option"
+ exit 1
+ fi
+ if [ -n "$JAVA_OPTS" ]; then
+ echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
+ fi
+ CMD="RUN"
+ JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
+ echo "Please start the remote debugging client to continue..."
+elif [ "$CMD" = "--n" ]; then
+ if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
+ echo " Please specify the number of instances to start after the --n option"
+ exit 1
+ fi
+elif [ "$CMD" = "start" ]; then
+ export CARBON_HOME=$CARBON_HOME
+ nohup $CARBON_HOME/bin/wso2server.sh &
+ exit 0
+elif [ "$CMD" = "stop" ]; then
+ export CARBON_HOME=$CARBON_HOME
+ kill -9 `cat $CARBON_HOME/wso2carbon.pid`
+ exit 0
+elif [ "$CMD" = "restart" ]; then
+ export CARBON_HOME=$CARBON_HOME
+ kill -term `cat $CARBON_HOME/wso2carbon.pid`
+ process_status=0
+ pid=`cat $CARBON_HOME/wso2carbon.pid`
+ while [ "$process_status" -eq "0" ]
+ do
+ sleep 1;
+ ps -p$pid 2>&1 > /dev/null
+ process_status=$?
+ done
+
+ # using nohup bash to avoid erros in solaris OS.TODO
+ nohup bash $CARBON_HOME/bin/wso2server.sh > /dev/null 2>&1 &
+ exit 0
+elif [ "$CMD" = "test" ]; then
+ JAVACMD="exec "$JAVACMD""
+elif [ "$CMD" = "version" ]; then
+ cat $CARBON_HOME/bin/version.txt
+ cat $CARBON_HOME/bin/wso2carbon-version.txt
+ exit 0
+fi
+
+jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
+
+if [ "$jdk_16" = "" ]; then
+ echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
+ exit 1
+fi
+
+CARBON_CLASSPATH=""
+if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
+ if [ "$f" != "$JAVA_HOME/lib/tools.jar" ];then
+ CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
+ fi
+fi
+
+CARBON_XBOOTCLASSPATH=""
+for f in "$CARBON_HOME"/lib/xboot/*.jar
+do
+ if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
+ CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
+ fi
+done
+
+JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
+
+for f in "$CARBON_HOME"/bin/*.jar
+do
+ if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
+ CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
+ fi
+done
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+ CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+ AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
+ CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
+ CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
+fi
+
+# ----- Execute The Requested Command -----------------------------------------
+
+echo JAVA_HOME environment variable is set to $JAVA_HOME
+echo CARBON_HOME environment variable is set to $CARBON_HOME
+
+cd "$CARBON_HOME"
+
+exec "$JAVACMD" \
+ -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
+ -d64 \
+ -server \
+ -Xms1500m -Xmx3000m \
+ -XX:PermSize=256m -XX:MaxPermSize=512m \
+ -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
+ -XX:+CMSClassUnloadingEnabled \
+ -XX:+OptimizeStringConcat \
+ -XX:+HeapDumpOnOutOfMemoryError \
+ -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./wso2server.sh &" \
+ -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
+ -XX:ErrorFile=repository/logs/hs_err_pid.log \
+ -XX:OnError="nohup ./wso2server.sh &" \
+ $JAVA_OPTS \
+ -Dcarbon.pid=$$ \
+ -Dcom.sun.management.jmxremote \
+ -Dwso2.loadbalancer=true \
+ -classpath "$CARBON_CLASSPATH" \
+ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
+ -Djava.io.tmpdir="$CARBON_HOME/tmp" \
+ -Dwso2.server.standalone=true \
+ -Dcarbon.registry.root=/ \
+ -Dcarbon.home="$CARBON_HOME" \
+ -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
+ -Djava.util.logging.config.file="$CARBON_HOME/lib/log4j.properties" \
+ -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
+ -Dconf.location="$CARBON_HOME/repository/conf" \
+ -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
+ -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
+ -Dcom.atomikos.icatch.hide_init_file_path=true \
+ -Dorg.terracotta.quartz.skipUpdateCheck=true \
+ org.wso2.carbon.bootstrap.Bootstrap $*
+
+
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/conf/axis2.xml b/products/elb/modules/distribution/src/main/conf/axis2.xml
new file mode 100755
index 0000000..58dfb4b
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/conf/axis2.xml
@@ -0,0 +1,525 @@
+<?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.apache.synapse.transport.passthru.PassThroughHttpListener">
+ <parameter name="port">8280</parameter>
+ <parameter name="non-blocking"> true</parameter>
+ <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
+ </transportReceiver>
+ <transportReceiver name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLListener">
+ <parameter name="port" locked="false">8243</parameter>
+ <parameter name="non-blocking" locked="false">true</parameter>
+ <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</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.apache.synapse.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.apache.synapse.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/fae25315/products/elb/modules/distribution/src/main/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/conf/cipher-text.properties b/products/elb/modules/distribution/src/main/conf/cipher-text.properties
new file mode 100644
index 0000000..9ad599b
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/conf/cipher-text.properties
@@ -0,0 +1,23 @@
+#
+# 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.
+#
+
+#aliases=esb
+#
+## configuration per each plaintext
+#esb.secret=M6U74dMVvRm4XFMczki2qZ6CsTvnUuRTjSditlACR5vTISSMI7F/mCTVJGOGdKJjij+VWVhBtmAOkElyvR9TwlUECnZ1o5DNsTK6l8je+9amc/ziTQLP3Q1tzm/Ex1pzHsG6jPGGrv3O0B9pZTfYFqRvlcNhM7Ve3WvA3ibs4Yk=
+#esb.secret.alias=wso2carbon
+#esb.secret.keystore=identity
+#
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/conf/datasources.properties b/products/elb/modules/distribution/src/main/conf/datasources.properties
new file mode 100644
index 0000000..2ef0505
--- /dev/null
+++ b/products/elb/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/fae25315/products/elb/modules/distribution/src/main/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/conf/embedded-ldap.xml b/products/elb/modules/distribution/src/main/conf/embedded-ldap.xml
new file mode 100644
index 0000000..6e64fac
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/conf/embedded-ldap.xml
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- *
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+* -->
+
+<!--
+ All carbon based products comes with a LDAP user store.
+ For this we use an embedded LDAP in carbon based products.
+ This file contains necessary configurations to control the behavior of embedded LDAP.
+ You may use this file to enable, disable LDAP server, configure connection admin password, etc ...
+ In addition to embedded-ldap server configurations this file also has Kerberos KDC (Key Distribution Center)
+ specific configurations.
+-->
+
+<EmbeddedLDAPConfig>
+
+ <!--
+ LDAP server configurations
+ ==========================
+ This section contains LDAP server specific configurations.
+
+ Property Usage
+ ======= ====
+ enable If true the embedded LDAP server will start when server starts up.
+ Else embedded LDAP server will not start. Thus user has to use a different
+ user store.
+ instanceid An id given to the LDAP server instance.
+ connectionPassword The password of the admin. (uid=admin,ou=system)
+ workingDirectory Location where LDAP will store its schema files.
+ AdminEntryObjectClass Object class which encapsulate attributes needed by claims.
+ allowAnonymousAccess Should allow users to access LDAP server without credentials. Default false.
+ accessControlEnabled Should access control be enabled among partitions. Default true.
+ saslHostName Default host name to be used in SASL (Simple Authentication and Security Layer).
+ This property comes from apacheds implementation itself.
+ saslPrincipalName Default SASL principal name. Again this property also comes from apacheds implementation
+ itself.
+ -->
+ <EmbeddedLDAP>
+ <Property name="enable">false</Property>
+ <Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
+ <Property name="instanceId">default</Property>
+ <Property name="connectionPassword">admin</Property>
+ <Property name="workingDirectory">.</Property>
+ <Property name="AdminEntryObjectClass">wso2Person</Property>
+ <Property name="allowAnonymousAccess">false</Property>
+ <Property name="accessControlEnabled">true</Property>
+ <Property name="denormalizeOpAttrsEnabled">false</Property>
+ <Property name="maxPDUSize">2000000</Property>
+ <Property name="saslHostName">localhost</Property>
+ <Property name="saslPrincipalName">ldap/localhost@EXAMPLE.COM</Property>
+ </EmbeddedLDAP>
+
+ <!--
+ Default partition configurations
+ ================================
+ When embedded LDAP server starts for the first time it will create a default partition.
+ Following properties configure values for the default partition.
+
+ Property Usage
+ ======= =====
+ id Each partition is given an id. The id given to the default paritition.
+ realm Realm is the place where we store user principals and service principals.
+ The name of the realm for default partition.
+ kdcPassword This parameter is used when KDC (Key Distribution Center) is enabled. In apacheds
+ KDC also has a server principal. This defines a password for KDC server principal.
+ ldapServerPrinciplePassword If LDAP server is also defined as a server principal, this will be the password.
+
+ -->
+ <DefaultPartition>
+ <Property name="id">root</Property>
+ <Property name="realm">wso2.org</Property>
+ <Property name="kdcPassword">secret</Property>
+ <Property name="ldapServerPrinciplePassword">randall</Property>
+ </DefaultPartition>
+
+ <!--
+ Default partition admin configurations
+ ======================================
+ In a multi-tenant scenario each tenant will have a separate partition. Thus tenant admin will be the partition admin.
+ Following configurations define admin attributes for above created default partition.
+
+ Property Usage
+ ======== =====
+ uid UID attribute for partition admin.
+ commonName The cn attribute for admin
+ lastName The sn attribute for admin
+ email The email attribute for admin
+ passwordType The password hashing mechanism. Following hashing mechanisms are available, "SHA", "MD5".
+ "Plaintext" is also a valid value. If KDC is enabled password type will be enforced to be
+ plain text.
+ -->
+ <PartitionAdmin>
+ <Property name="uid">admin</Property>
+ <Property name="firstName">admin</Property>
+ <Property name="lastName">admin</Property>
+ <Property name="email">admin@wso2.com</Property>
+ <Property name="password">admin</Property>
+ <Property name="passwordType">SHA</Property>
+ </PartitionAdmin>
+
+ <!--
+ Default partition admin's group configuration
+ =============================================
+ Embedded LDAP is capable of keeping group information also.
+ If LDAP groups are enabled in user store (usr-mgt.xml) group information will be
+ recorded in a separate sub-context. Following configuration defines the group
+ properties.
+
+ Property Usage
+ ======= =====
+ adminRoleName The name of the role/group that admin should be included.
+ groupNameAttribute The attribute which group name will be recorded.
+ memberNameAttribute The attribute which memebers are recorded.
+ -->
+ <PartitionAdminGroup>
+ <Property name="adminRoleName">admin</Property>
+ <Property name="groupNameAttribute">cn</Property>
+ <Property name="memberNameAttribute">member</Property>
+ </PartitionAdminGroup>
+
+ <!--
+ KDC configurations
+ =================
+ Following configurations are applicable to KDC server. Generally, the KDC is only enabled in
+ Identity Server. You may enable KDC server if you wish to do so. But if you dont have any Kerberos specific
+ programs, it is recommended to disable KDC server.
+
+ Property Usage
+ ======= =====
+ name Name given to default KDC server.
+ enabled If true a KDC server will start when starting LDAP server.
+ Else a KDC server will not start with a LDAP server.
+ protocol Default protocol to be used in KDC communication. Default is UDP.
+ maximumTicketLifeTime The maximum life time of a ticket issued by the KDC.
+ maximumRenewableLifeTime Life time which a ticket can be used by renewing it several times.
+ preAuthenticationTimeStampEnabled Pre-authentication is a feature in latest Kerberos protocol.
+ This property says whether to enable it or disable it.
+ -->
+ <KDCServer>
+ <Property name="name">defaultKDC</Property>
+ <Property name="enabled">false</Property>
+ <Property name="protocol">UDP</Property>
+ <Property name="host">localhost</Property>
+ <Property name="port">${Ports.EmbeddedLDAP.KDCServerPort}</Property>
+ <Property name="maximumTicketLifeTime">8640000</Property>
+ <Property name="maximumRenewableLifeTime">604800000</Property>
+ <Property name="preAuthenticationTimeStampEnabled">true</Property>
+ </KDCServer>
+
+</EmbeddedLDAPConfig>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fae25315/products/elb/modules/distribution/src/main/conf/loadbalancer.conf
----------------------------------------------------------------------
diff --git a/products/elb/modules/distribution/src/main/conf/loadbalancer.conf b/products/elb/modules/distribution/src/main/conf/loadbalancer.conf
new file mode 100644
index 0000000..3b883f5
--- /dev/null
+++ b/products/elb/modules/distribution/src/main/conf/loadbalancer.conf
@@ -0,0 +1,126 @@
+# 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.
+
+# configuration details of WSO2 Elastic Load Balancer
+# for more info on how it works, refer to: http://blog.afkham.org/2011/09/wso2-load-balancer-how-it-works.html
+# for more info on how to set it up, refer to: http://nirmalfdo.blogspot.com/2012/06/fronting-wso2-application-server-50.html
+loadbalancer {
+ # minimum number of load balancer instances
+ instances 1;
+ # whether autoscaling should be enabled or not.
+ enable_autoscaler false;
+ # autoscaling decision making task
+ #autoscaler_task org.wso2.carbon.mediator.autoscale.lbautoscale.task.ServiceRequestsInFlightAutoscaler;
+ # whether to use embedded autoscaler or not. By default, we use embedded autoscaler.
+ #use_embedded_autoscaler false;
+ #please use this whenever url-mapping is used through LB.
+ #size_of_cache 100;
+ # End point reference of the Autoscaler Service. This should be present, if you disabled embedded autoscaling.
+ #autoscaler_service_epr https://host_address:https_port/services/AutoscalerService/;
+ # interval between two task executions in milliseconds
+ autoscaler_task_interval 60000;
+ # after an instance booted up, task will wait maximum till this much of time and let the server started up
+ server_startup_delay 600000; #default will be 60000ms
+ # session time out
+ session_timeout 90000;
+ # enable fail over
+ fail_over true;
+ #mb_server_url localhost:5672;
+}
+
+# services' details which are fronted by this WSO2 Elastic Load Balancer
+services {
+ # default parameter values to be used in all services
+ defaults {
+ # minimum number of service instances required. WSO2 ELB will make sure that this much of instances
+ # are maintained in the system all the time, of course only when autoscaling is enabled.
+ min_app_instances 1;
+ # maximum number of service instances that will be load balanced by this ELB.
+ max_app_instances 5;
+ # you need to calibrate autoscaling parameters before start using. Please go through following blog post
+ # http://nirmalfdo.blogspot.com/2013/01/scale-up-early-scale-down-slowly.html
+ max_requests_per_second 5;
+ alarming_upper_rate 0.7;
+ alarming_lower_rate 0.2;
+ scale_down_factor 0.25;
+ rounds_to_average 2;
+ message_expiry_time 60000;
+ }
+
+ appserver {
+ # multiple hosts should be separated by a comma.
+ hosts appserver.cloud-test.wso2.com,as.cloud-test.wso2.com;
+ #when using url mapping, url_suffix will be required. hosts should be read first before url_suffix,
+ #in order to construct the host vs url-suffix pairs, hence keep the logical order to of hosts and url_suffix as it is.
+ #url_suffix as.wso2.com,appserver.wso2.com;
+ domains {
+ wso2.as1.domain {
+ # for more info on Tenant aware load balancing please refer to
+ # http://sanjeewamalalgoda.blogspot.com/2012/05/tenant-aware-load-balancer.html
+ tenant_range 1-100;
+ }
+ wso2.as2.domain {
+ tenant_range 101-200;
+ }
+ wso2.as3.domain {
+ # all tenants other than 1-200 will belong to this domain.
+ tenant_range *;
+ }
+ }
+ }
+
+ esb {
+ # multiple hosts should be separated by a comma.
+ hosts esb.cloud-test.wso2.com;
+ #url_suffix esb.wso2.com;
+ domains {
+ wso2.esb.domain {
+ tenant_range *;
+ }
+ }
+ }
+
+ governance {
+ hosts governance.cloud-test.wso2.com;
+ #url_suffix governance.wso2.com;
+ domains {
+ wso2.governance1.domain {
+ tenant_range 1-100;
+ }
+ wso2.governance2.domain {
+ tenant_range 101-200;
+ }
+ wso2.governance3.domain {
+ tenant_range *;
+ }
+ }
+ }
+
+ identity {
+ hosts identity.cloud-test.wso2.com;
+ #url_suffix identity.wso2.com;
+ domains {
+ wso2.identity1.domain {
+ tenant_range 1-100;
+ }
+ wso2.identity2.domain {
+ tenant_range 101-200;
+ }
+ wso2.identity3.domain {
+ tenant_range *;
+ }
+ }
+ }