We have implemented a test class to automate ESB - Local transport
scenario. This test class will test the local transport feature among three
proxy services. In the first place the test will enable 'Non Blocking Local
Transport' of the esb server and will create three proxy services which
will use local transport feature to transfer data within them. However we
are in doubt whether we need to mention transport as 'local' when we create
proxy services. Below is the source of the second proxy service . Do we
need to mention transport as 'local' explicitly here or would it be fine to
keep it as 'https http' ?

    <proxy xmlns="http://ws.apache.org/ns/synapse"; name="SecondProxy"
           transports=*"https http"* startOnLoad="true" trace="disable">
        <target>
            <endpoint name="ep2">
                <address uri="local://services/StockQuoteProxy"/>
            </endpoint>
            <inSequence>
                <log level="full"/>
                <log level="custom">
                    <property name="SecondProxy" value="In sequence of
Second proxy invoked!"/>
                </log>
            </inSequence>
            <outSequence>
                <log level="custom">
                    <property name="SecondProxy" value="Out sequence of
Second proxy invoked!"/>
                </log>
                <send/>
            </outSequence>
        </target>
        <publishWSDL
uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
   </proxy>

Regards


-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to