You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by is...@apache.org on 2013/07/26 11:20:34 UTC
[12/24] Removed src/site from cloud controller and stratos controller
products
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/samples/jms_transport_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/samples/jms_transport_sample.xml b/products/cloud_controller/modules/distribution/src/site/xdoc/samples/jms_transport_sample.xml
deleted file mode 100644
index 0fa2a82..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/samples/jms_transport_sample.xml
+++ /dev/null
@@ -1,375 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<!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 - JMS Transport 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>WSO2 MB - Samples :JMS Transport Sample</h1>
- <p>Apache AXIS2 support a JMS transport layer in addition to the existing HTTP transport. This allows Web
- service clients and servers to communicate via JMS queues and topics instead of HTTP connections.
- Both one-way and synchronous two-way requests are supported.</p>
- <p>The benefits of using JMS as an alternative to HTTP include the following:</p>
- <ul>
- <li>
- Request and response messages are sent by way of reliable messaging.
- </li>
- <li>One-way requests allow client and server to be more loosely-coupled (the server does not have to be
- active when the client sends the one-way request).
- </li>
- <li>One-way requests can be sent to multiple servers simultaneously through the use of a topic.
- </li>
- </ul>
- <p>If a web service is to be accessible on the JMS transport, then the corresponding WSDL document should include
- a JMS binding and a SOAP address which specifies a JMS endpoint URL string. A JMS binding is simply
- a <b>wsdl:binding </b> element which contains a <b
- >wsdlsoap:binding</b> element whose transport attribute ends in soap/jms,
- rather than the normal soap/http value. In addition to the JMS binding, a <b>wsdl:port</b> element which references
- the JMS binding should be included in the <b>wsdl:service</b> element within the WSDL document. This <b>wsdl:port</b> element
- should contain a <b>wsdlsoap:address</b> element whose location attribute specifies a JMS endpoint URL string.
- </p>
- <p>
- You also need to decide on the names and types of JMS objects that your application will use. For example,
- you must decide whether your web service will receive its requests from a queue or a topic. You also must
- decide whether to use a secure destination (queue or topic). Finally, you will need to decide on the names
- for your destination, connection factory, and listener port. The following list provides an example of the
- names that might be used for the sample MessageReceiveService web service:
- </p>
- <table>
- <tr>
- <td>Queue</td> <td>MessageReceiveService, JNDI name: MessageReceiveService</td>
- </tr>
- <tr>
- <td>QueueConnectionFactory</td> <td></td>
- </tr>
- </table>
- <h2>Creating A Simple Service</h2>
- <p>Following java class with its two operations are hosted in Axis2 server as a web service</p>
- <pre xml:space="preserve">
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
- public class MessageReceiveService {
- public void receive(String message) {
- System.out.println("Got the message ==> " + message);
- }
- public String echo(String message) {
- System.out.println("Got the message ==> " + message);
- return message;
- }
- }
- </pre>
- <p>As WSDL of the service following will be used. Note how JMS bindings are defined. receive operation is an
- "in only" operation having only input message. But echo is "in-out" operation which is having an output
- message as well as an input message.
- </p>
-
- <pre xml:space="preserve">
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://transport.sample.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://transport.sample.org">
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://transport.sample.org">
- <xs:element name="receive">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="echo">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="echoResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- </wsdl:types>
- <wsdl:message name="echoRequest">
- <wsdl:part name="parameters" element="ns:echo"/>
- </wsdl:message>
- <wsdl:message name="echoResponse">
- <wsdl:part name="parameters" element="ns:echoResponse"/>
- </wsdl:message>
- <wsdl:message name="receiveRequest">
- <wsdl:part name="parameters" element="ns:receive"/>
- </wsdl:message>
- <wsdl:portType name="MessageReceiveServicePortType">
- <wsdl:operation name="echo">
- <wsdl:input message="ns:echoRequest" wsaw:Action="urn:echo"/>
- <wsdl:output message="ns:echoResponse" wsaw:Action="urn:echoResponse"/>
- </wsdl:operation>
- <wsdl:operation name="receive">
- <wsdl:input message="ns:receiveRequest" wsaw:Action="urn:receive"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="MessageReceiveServiceSoap11Binding" type="ns:MessageReceiveServicePortType">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
- <wsdl:operation name="echo">
- <soap:operation soapAction="urn:echo" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="receive">
- <soap:operation soapAction="urn:receive" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="MessageReceiveServiceSoap12Binding" type="ns:MessageReceiveServicePortType">
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
- <wsdl:operation name="echo">
- <soap12:operation soapAction="urn:echo" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="receive">
- <soap12:operation soapAction="urn:receive" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="MessageReceiveService">
- <wsdl:port name="MessageReceiveServiceJmsSoap11Endpoint" binding="ns:MessageReceiveServiceSoap11Binding">
- <soap:address location="jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;transport.jms.ContentTypeProperty=Content-Type&amp;java.naming.provider.url=conf/jndi.properties&amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;transport.jms.ConnectionFactoryType=queue&amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory"/>
- </wsdl:port>
- <wsdl:port name="MessageReceiveServiceJmsSoap12Endpoint" binding="ns:MessageReceiveServiceSoap12Binding">
- <soap12:address location="jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;transport.jms.ContentTypeProperty=Content-Type&amp;java.naming.provider.url=conf/jndi.properties&amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;transport.jms.ConnectionFactoryType=queue&amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory"/>
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
- </pre>
-
- <h2>Axi2 Configurations</h2>
- <p>axi2.xml file, which configures the axis2 server on which above service is hosted, should be enabled with JMS
- transport.</p>
- <pre xml:space="preserve">
- <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener">
- <parameter name="default" locked="false">
- <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter>
- <parameter name="java.naming.provider.url" locked="false">conf/jndi.properties</parameter>
- <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter>
- <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter>
- </parameter>
- </transportReceiver>
- </pre>
- <br></br>
- <pre xml:space="preserve">
- <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
- </pre>
-
- <h2>Message Broker Bindings</h2>
- <p>conf/jndi.properties file is having all JMS bindings (Queue/QueueConnectionFactory) mentioned above.</p>
-
- <pre xml:space="preserve">
-
- connectionfactory.QueueConnectionFactory=amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5672'
- queue.MessageReceiveService=MessageReceiveService
- </pre>
- <p>Note that WSO2 Message Broker should be running at localhost port 5672 as per this sample.</p>
- <h2>Start Axis2 Server</h2>
- <p>Axis2 server is started with above configurations, hosting the above MessageReceiveService service.</p>
- <pre xml:space="preserve">
-
- private AxisServer axisServer;
- public void start(){
- try {
- ConfigurationContext configurationContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
- this.axisServer = new AxisServer();
- this.axisServer.setConfigurationContext(configurationContext);
- this.axisServer.deployService(MessageReceiveService.class.getName());
- try {
- Thread.sleep(2000);
- } catch (InterruptedException e) {
- }
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- </pre>
-
- <h2>Send A Message To MessageReceiveService Service</h2>
- <p>Now using axis2_client.xml as the config file a ConfigurationContext can be created and a message can be sent
- to the service. Note that fist "in-only" message is sent and then "in-out" message is sent. Client stub is
- generated from the above WSDL using WSDL-To-Java tool (when complied using build.xml at & MB_HOME &
- /Samples/jmstransport using ant this will be done).
- </p>
- <p>Using WSO2 MB management console you can see how MessageReceiveService queue is created. See Message Broker
- Queues - User Guide for more information.</p>
- <pre xml:space="preserve">
-
- public void sendMessage(){
- try {
-
- ConfigurationContext configurationContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
- MessageReceiveServiceStub stub = new MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
- //first send the in only message
- stub.receive("Test message to receive ");
- // inout message
- String response = stub.echo("Test message to echo");
- System.out.println("Response ==> " + response);
-
- try {
- Thread.sleep(10000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
- } catch (java.rmi.RemoteException e) {
- e.printStackTrace();
- }
- }
- </pre>
- <p>
- The complete sample code demonstrating the scenario will be as follows.
- </p>
- <pre xml:space="preserve">
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisServer;
-import org.sample.transport.stub.MessageReceiveServiceStub;
-
-public class JMSTransportClient {
- private AxisServer axisServer;
- public void start(){
- try {
- ConfigurationContext configurationContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
- this.axisServer = new AxisServer();
- this.axisServer.setConfigurationContext(configurationContext);
- this.axisServer.deployService(MessageReceiveService.class.getName());
- try {
- Thread.sleep(2000);
- } catch (InterruptedException e) {
- }
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- public void stop(){
- try {
- this.axisServer.stop();
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
- }
- }
- public void sendMessage(){
- try {
-
- ConfigurationContext configurationContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
- MessageReceiveServiceStub stub = new MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
- //first send the in only message
- stub.receive("Test message to receive ");
- // inout message
- String response = stub.echo("Test message to echo");
- System.out.println("Response ==> " + response);
-
- try {
- Thread.sleep(10000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- } catch (AxisFault axisFault) {
- axisFault.printStackTrace();
- } catch (java.rmi.RemoteException e) {
- e.printStackTrace();
- }
- }
- public static void main(String[] args) {
-
- JMSTransportClient jmsTransportClient = new JMSTransportClient();
- jmsTransportClient.start();
- jmsTransportClient.sendMessage();
- jmsTransportClient.stop();
- }
-
- }
- </pre>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/samples/web_service_client_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/samples/web_service_client_sample.xml b/products/cloud_controller/modules/distribution/src/site/xdoc/samples/web_service_client_sample.xml
deleted file mode 100644
index aad67bf..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/samples/web_service_client_sample.xml
+++ /dev/null
@@ -1,235 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<!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">
-
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
- 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">
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-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/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/samples_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/samples_index.xml b/products/cloud_controller/modules/distribution/src/site/xdoc/samples_index.xml
deleted file mode 100644
index 27f262d..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/samples_index.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-<!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/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/css/search.css
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/css/search.css b/products/cloud_controller/modules/distribution/src/site/xdoc/search/css/search.css
deleted file mode 100644
index 42d78e6..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/search/css/search.css
+++ /dev/null
@@ -1,25 +0,0 @@
-table tbody tr td {
- border: 0 none;
- padding: 0;
- text-align: left;
- vertical-align: top;
-}
-
-body {
- margin: 0;
- padding: 0;
-}
-
-#mediaTypeAutoComplete {
- width: 130px; /* set width here or else widget will expand to fit its container */
-}
-
-.loadMediaTypeButton {
- margin-left: 170px;
- display:block;
- width:50px;
-}
-.search-subtitle{
- color: #666666;
- font-weight:bold;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/configuration.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/configuration.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/configuration.png
deleted file mode 100644
index 5935676..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/configuration.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/custom_search.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/custom_search.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/custom_search.png
deleted file mode 100644
index 4dcfc1b..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/custom_search.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/date.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/date.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/date.png
deleted file mode 100644
index bf70c91..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/date.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/load_filter.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/load_filter.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/load_filter.png
deleted file mode 100644
index b430ae4..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/load_filter.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/main.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/main.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/main.png
deleted file mode 100644
index 537cc9a..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/main.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/reporting_crumb.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/reporting_crumb.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/reporting_crumb.png
deleted file mode 100644
index a41f431..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/reporting_crumb.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/save_filter.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/save_filter.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/save_filter.png
deleted file mode 100644
index 8df8da2..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/images/save_filter.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/userguide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/userguide.xml b/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/userguide.xml
deleted file mode 100644
index 1d847eb..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/search/docs/userguide.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
- <title>Registry Search - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all"/>
-</head>
-
-<body>
-<h1>Registry Search</h1>
-
-<h2>Search</h2>
-
- <p> All resources found in the registry, can be searched through this interface. Search could be
- refined by optionally providing, resource name, created date range, updated date range, tags,comments, association type,
- association destination, property name, property value and the content. To search for matches containing a specific
- pattern use the <strong>%</strong> symbol. The pattern matching can be used with the following fields "Resource name",
- "created by", "updated by" and "property value". Also the search supports the use of part of the user name in the "created by"
- and "updated by" fields. And also for the fields like Created data range,Updated range,Created user and Updated user
- the negation option is provided in order to search other than the provided criteria.</p>
-
- <p>To enter more than one term in tags, use comma (",") as the separator. To enter more than one
- term in keywords, use space (" ") as the separator.</p>
-
- <p><img src="images/main.png" width="777px"/></p>
-
- <p>Figure 1: Search Interface</p>
-
- <p>Created or Updated dates can be either entered in the format of MM/DD/YYYY or used the date
- picker user interface provided.</p>
-
- <p><img src="images/date.png" width="777px"/></p>
-
- <p>Figure 2: Date picker user interface</p>
-
-
-<br/><br/>
-
-<h3>Custom Search</h3>
-<p>The custom search provides the user with the ability to customize the search interface for a given media type.
-The search parameters for a given media type is configured by a user with admin privileges by creating a resource
-with the name of the media type (for <strong>application/wsdl+xml</strong> the resource name should be <strong>application-wsdl-xml</strong>)
-and declaring the parameters as properties. The search parameter name is given as the property name and the property value
-describes whether this parameter should be included in the custom search.</p>
-
-<p><img src="images/configuration.png" width="777px"/></p>
-<p>Figure 3: Custom search configuration </p>
-
-<p>The advanced search contains a field where the user can specify a media type. Upon selecting a media type,
- custom search form for that media type will be automatically loaded.
-</p>
-
-<p><img src="images/custom_search.png" width="777px"/></p>
-
-<p>Figure 4: Custom search interface </p>
-
-<h2>Saving a Search Filter</h2>
- <p>
- Search criteria can be saved as a filter using the interface shown in Figure 5.
- </p>
-
- <p><img src="images/save_filter.png" width="777px"/></p>
-
- <p>Figure 5: Save search filter user interface</p>
-
-<br/><br/>
-
-<h2>Loading a Search Filter</h2>
- <p>A saved search filter can be loaded by selecting the filter name in the drop-down list shown
- in Figure 6. Upon loading a search filter, search form fields are populated with previously saved values.
- </p>
-
- <p><img src="images/load_filter.png" width="777px"/></p>
-
- <p>Figure 6: Save search filter user interface</p>
-
-<h2>Report generation for search results</h2>
-
- <p>In the search result page the user is able to generate a report which will include search results.The user is able to
- create reports in PDF,HTML or Excel.</p>
- <p><img src="images/reporting_crumb.png" width="550px" /></p>
- <p>Figure 7: Reporting options</p>
-
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-down.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-down.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-down.png
deleted file mode 100644
index b60cc35..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-down.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-up.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-up.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-up.png
deleted file mode 100644
index 7cda4cc..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/arrow-up.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/calendar.jpg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/calendar.jpg b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/calendar.jpg
deleted file mode 100644
index b609c89..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/calendar.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-expanded.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-expanded.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-expanded.gif
deleted file mode 100644
index e9b6739..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-expanded.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-folder-small.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-folder-small.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-folder-small.gif
deleted file mode 100644
index be6b59c..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-folder-small.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-minimized.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-minimized.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-minimized.gif
deleted file mode 100644
index cd9a7a5..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/icon-minimized.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r00.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r00.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r00.gif
deleted file mode 100644
index 0723853..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r00.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r01.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r01.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r01.gif
deleted file mode 100644
index 9c7b922..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r01.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r02.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r02.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r02.gif
deleted file mode 100644
index e64f6f6..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r02.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r03.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r03.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r03.gif
deleted file mode 100644
index e85ccd2..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r03.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r04.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r04.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r04.gif
deleted file mode 100644
index 02d1276..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r04.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r44.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r44.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r44.gif
deleted file mode 100644
index 02d1276..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r44.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r4x.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r4x.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r4x.gif
deleted file mode 100644
index 02d1276..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/r4x.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/resource.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/resource.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/resource.gif
deleted file mode 100644
index bd4f965..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/resource.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-content.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-content.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-content.png
deleted file mode 100644
index ae951e8..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-content.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-resources.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-resources.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-resources.gif
deleted file mode 100644
index b637519..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-resources.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-top.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-top.png b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-top.png
deleted file mode 100644
index c288eaf..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search-top.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search.gif
deleted file mode 100644
index 86f81ed..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/search/images/search.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_custom_policy.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_custom_policy.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_custom_policy.png
deleted file mode 100644
index 695ca58..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_custom_policy.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_key_stores.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_key_stores.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_key_stores.png
deleted file mode 100644
index f85b4b2..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_key_stores.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_user_groups.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_user_groups.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_user_groups.png
deleted file mode 100644
index 5148022..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/activate_security_user_groups.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/default_scenarios.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/default_scenarios.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/default_scenarios.png
deleted file mode 100644
index b549445..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/default_scenarios.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/kerberos_spn.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/kerberos_spn.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/kerberos_spn.png
deleted file mode 100644
index ed2690e..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/kerberos_spn.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/no_security.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/no_security.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/no_security.png
deleted file mode 100644
index bb0eb5f..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/no_security.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/policy_from_registry.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/policy_from_registry.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/policy_from_registry.png
deleted file mode 100644
index 5103327..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/images/policy_from_registry.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/userguide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/userguide.xml b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/userguide.xml
deleted file mode 100644
index e7c381e..0000000
--- a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/docs/userguide.xml
+++ /dev/null
@@ -1,206 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=windows-1252"></meta>
- <title>Security for Web Service - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all"/>
-</head>
-<body>
-
-<h1>Security for Web Services</h1>
-
-<p> Web Services security, or to be more precise, SOAP message security, identifies and
- provides solutions for general computer security threats as well as threats unique
- to Web services. </p>
-
-<p> WSO2 Carbon supports WS Security, WS-Policy and WS-Security Policy specifications.
- These specifications define a behavioral model for Web services. A requirement for
- one Web service may not be valid for another. Thus defining service-specific
- requirements might be necessary.</p>
-
-<p> The WSO2 SOA platform provides important security features to your service. By default,
- the security features are disabled. You should explicitly enable the security feature.</p>
-
-<h2>Adding Security Features</h2>
-
-<p> Understanding the exact security requirements should be the first step you should take
- when planning to secure your Web services. For an example, you may have to consider what
- security aspects are important to your service, whether it is the integrity,
- confidentiality, or both. </p>
-
-<ol>
- <li>In the navigator, under Manage/Services, click <strong>List</strong>.
- The <em><strong>Deployed Services</strong></em> page appears.
- </li>
- <li>Click on the service name for which you want to add
- security features. The <em><strong>Service Dashboard</strong></em>
- page appears.
- </li>
- <li>Click <strong>Security</strong> in the <strong>Quality
- of Service Configuration</strong> panel. The <em><strong>Security
- for the Service</strong></em> page appears.
- </li>
- <li>To enable security for the service, in the <strong>Enable
- Security? </strong> drop down list, click <strong>Yes.</strong></li>
-
- <p><img src="images/no_security.png" alt="Turning on Security" height="144" width="1018" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 1:</strong> Enabling security</em></p>
-
- <p>A list of available security scenarios is displayed. In addition to that, an
- option is provided to select a custom security policy from Registry.</p>
-
- <p><img src="images/default_scenarios.png" alt="Selecting default security scenarios" height="624" width="998" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 2:</strong> Selecting Default Security Scenarios</em></p>
-
- <p><img src="images/policy_from_registry.png" alt="Referring to a policy from Registry" height="114" width="993" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 3:</strong> Referring to a policy from Registry</em></p>
-
- <li>To enable security for your service, either you can select a default security scenario
- from the 15 existing scenarios (as shown in Figure 2) or you can refer to a custom
- security policy which is stored in Configuration Registry or Governance Registry
- (as shown in Figure 3). After selecting the suitable option, click <strong>Next</strong>.
- The <em><strong>Activate Security</strong></em> page appears. You can configure the
- security features on this page. The configurations depend on your previous selections.
-
- <br/>
-
- If you have selected a default security scenario, this page will show you the user groups,
- key stores etc. according to the selected security scenario. But if you have referred to a
- custom security policy from Registry, this page will show all the options to select user
- groups and key stores and you have to select those according to your policy.
-
- <br/>
- <br/>
-
- <ul>
- <ul>
- <li>In a default scenario, if you have selected a policy that includes Username Token,
- you will have the User Group panel to choose the users who are
- allowed to access the service.
-
- <p><img src="images/activate_security_user_groups.png" alt="Activate Security - User Groups" height="250" width="1012" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 4:</strong> Activate security - User Groups</em></p>
- </li>
- </ul>
- </ul>
-
- <ul>
- <ul>
- <li>In a default scenario, if you have selected a policy that requires signing or
- encryption, Trusted Key Stores and Private Key Store panels appear.
- Select the KeyStore (wso2carbon.jks) and the Private Key Store
- (Only the wso2carbon.jks keystore is available by default).
-
- <p><img src="images/activate_security_key_stores.png" alt="Activate Security - Selecting Key Stores" height="312" width="1011" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 5:</strong> Activate Security - Selecting Key Stores</em></p>
- </li>
- </ul>
- </ul>
-
-
- <ul>
- <ul>
- <li>
- <p>
- If you are applying security scenario 16 (Kerberos Token based security) you have to associate
- your service with a service principal. Security scenario 16 is only applicable if you have a
- <strong>"Key Distribution Center (KDC)"</strong> and an <strong>"Authentication Server
- (AS)"</strong>
- in your environment. Commonly you can find KDC and an AS in a LDAP Directory server.
- </p>
-
-
- 2 configuration files are used to specify Kerberos related parameters. They are, <br/>
- 1. krb5.conf - Includes KDC server details, encryption/decryption algorithms etc ... <br/>
- 2. jaas.conf - Includes information relevant to authorization.
-
-
- <p>Usually above files are located at {server installation directory}/repository/conf directory.</p>
-
- <p>
- After selecting scenario 16, you will be asked to fill information about service principal to
- associate web service with. There you need to specify service principal name and service
- principal password. Service principal must be already defined in the LDAP Directory server.
- </p>
-
- <p>
- Following picture depicts this behavior,
- </p>
-
- <p><img src="images/kerberos_spn.png" alt="Activate Security - Kerberos security policy"
- border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 6:</strong> Activate Security - Kerberos security policy</em></p>
- </li>
- </ul>
- </ul>
-
-
- <ul>
- <ul>
- <li>When you have referred to a custom policy from Registry, you will be provided
- with all possible options to select user groups, trusted key stores and private
- key store. You can select only the needed options according to your custom
- policy and ignore others. Even if you select unwanted stuff, those will not be
- used at runtime.
-
- <p><img src="images/activate_security_custom_policy.png" alt="Activate Security - Custom policies" height="423" width="1013" border="1" style="border-color:darkgray"/></p>
-
- <p><em><strong>Figure 7:</strong> Activate Security - Custom policies</em></p>
- </li>
- </ul>
- </ul>
-
-
- </li>
-
- <li>Click <strong>Finish</strong>. You will see the message "Security Applied Successfully".
- And you will be redirected to the Service Dashboard.</li>
-
-</ol>
-
-<h2>Disabling Security Features</h2>
-
-<p>This function is used to disable Security from a particular service.</p>
-
-<ol>
- <li>In the navigator, under Manage/Service, click <strong>List</strong>.
- The <em><strong>Deployed Services</strong></em> page appears.
- </li>
- <li>Click on the service name from which you want to disable security.
- The <em><strong>Service Dashboard</strong></em> page appears.
- </li>
- <li>Click <strong>Security</strong> in the <strong>Quality of Service Configuration</strong>
- panel. The <em><strong>Security for Service</strong></em> page appears.
- </li>
- <li>To disable security from the service, in the <strong>Enable
- Security? </strong> drop down list, click <strong>No</strong> and confirm.</li>
- <li>You will see the message "Security Applied Successfully".</li>
-</ol>
-
-<p><strong>Note</strong>: All default security scenarios are described in the wizard.</p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario1.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario1.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario1.png
deleted file mode 100644
index 9865055..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario1.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario10.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario10.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario10.png
deleted file mode 100644
index f5d5327..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario10.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario11.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario11.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario11.png
deleted file mode 100644
index c802d23..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario11.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario12.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario12.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario12.png
deleted file mode 100644
index 552b045..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario12.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario13.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario13.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario13.png
deleted file mode 100644
index eea4042..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario13.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario14.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario14.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario14.png
deleted file mode 100644
index 3cb7ea6..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario14.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario15.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario15.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario15.png
deleted file mode 100644
index f96dd3c..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario15.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario16.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario16.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario16.png
deleted file mode 100644
index 6095861..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario16.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario2.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario2.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario2.png
deleted file mode 100644
index 751aa5d..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario2.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario3.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario3.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario3.png
deleted file mode 100644
index 2c156a2..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario3.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario4.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario4.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario4.png
deleted file mode 100644
index 952e6a6..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario4.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario5.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario5.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario5.png
deleted file mode 100644
index 6e2b1b1..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario5.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario6.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario6.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario6.png
deleted file mode 100644
index 6dc2b62..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario6.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario7.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario7.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario7.png
deleted file mode 100644
index df3876b..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario7.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario8.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario8.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario8.png
deleted file mode 100644
index e2accbd..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario8.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario9.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario9.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario9.png
deleted file mode 100644
index c58d683..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/scenario9.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/view.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/view.png b/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/view.png
deleted file mode 100644
index 2fbe195..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/securityconfig/images/view.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/7f09a628/products/cloud_controller/modules/distribution/src/site/xdoc/server-admin/docs/images/server-admin.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/site/xdoc/server-admin/docs/images/server-admin.gif b/products/cloud_controller/modules/distribution/src/site/xdoc/server-admin/docs/images/server-admin.gif
deleted file mode 100644
index 4dea3d3..0000000
Binary files a/products/cloud_controller/modules/distribution/src/site/xdoc/server-admin/docs/images/server-admin.gif and /dev/null differ