lunes, 30 de mayo de 2016

LOAD BALANCING WITH APACHE WEB SERVER (PART 2)

Detailed Steps to setup LB

Create and run web service on Server 1(in this case it is on 10.0.1.43)

1. Create a soap based mule web service as shown in the “Message Flow” diagram given below
soap web service
2. Following is the XML Configuration fie (Watch out that the service is exposed over 10.0.1.43)


    <flow name="soap-web-serviceFlow1" doc:name="soap-web-serviceFlow1">
        <http:inbound-endpoint address="http://localhost:8091/hello"
            exchange-pattern="request-response" doc:name="HTTP">
            <cxf:jaxws-service serviceClass="org.example.HelloWorld" />
        </http:inbound-endpoint>
        <component class="org.example.HelloWorldImpl" doc:name="Java" />
    </flow>


3. Run the service with following configuration
run the service
4. Add following run time parameter at VM arguments –Dmule.tcp.bindlocalhosttoalllocalinterfaces=true, this should look like
add the following

5. With this, the service will be exposed http://10.0.1.43:8091/hello?wsdl

No hay comentarios:

Publicar un comentario