5 Replies Latest reply: Jun 26, 2012 12:04 AM by Magesh Bojan RSS

Socket address change in 0.5 beta1

Gary Brown Master

Hi

 

After updating to 0.5.beta1 I've got a test failure in my copy of the bean-service OrderService quickstart that I'm using as part of the bam project. The test runs against port 18001, which used to work, but the logs now show the service is being started at 8080:

 

13:26:32,790 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://localhost:8080/quickstart-bean/OrderService

 

So the test is failing with a connection refused exception.

 

The last version I was testing against was built probably three/four weeks ago, so not sure when the behaviour changed. Any thoughts on what has changed?

 

My switchyard descriptor is:

 

 

<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" name="orders" targetNamespace="urn:switchyard-quickstart:bean-service:0.1.0">
    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="orders" targetNamespace="urn:switchyard-quickstart:bean-service:0.1.0">
        <service name="OrderService" promote="OrderService">
            <interface.wsdl interface="wsdl/OrderService.wsdl#wsdl.porttype(OrderService)"/>
            <binding.soap xmlns="urn:switchyard-component-soap:config:1.0">
                <wsdl>wsdl/OrderService.wsdl</wsdl>
                <socketAddr>:18001</socketAddr>
                <contextPath>quickstart-bean</contextPath>
            </binding.soap>
        </service>
        <component name="InventoryService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.overlord.bam.tests.actmgmt.jbossas.beanservice.InventoryServiceBean"/>
            <service name="InventoryService">
                <interface.java interface="org.overlord.bam.tests.actmgmt.jbossas.beanservice.InventoryService"/>
            </service>
        </component>
        <component name="OrderService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.overlord.bam.tests.actmgmt.jbossas.beanservice.OrderServiceBean"/>
            <service name="OrderService">
                <interface.java interface="org.overlord.bam.tests.actmgmt.jbossas.beanservice.OrderService"/>
            </service>
            <reference name="InventoryService">
                <interface.java interface="org.overlord.bam.tests.actmgmt.jbossas.beanservice.InventoryService"/>
            </reference>
        </component>
    </composite>
    <transforms>
        <transform.java xmlns="urn:switchyard-config:transform:1.0" class="org.overlord.bam.tests.actmgmt.jbossas.beanservice.Transformers" from="{urn:switchyard-quickstart:bean-service:1.0}submitOrder" to="java:org.overlord.bam.tests.actmgmt.jbossas.beanservice.Order"/>
        <transform.java xmlns="urn:switchyard-config:transform:1.0" class="org.overlord.bam.tests.actmgmt.jbossas.beanservice.Transformers" from="java:org.overlord.bam.tests.actmgmt.jbossas.beanservice.OrderAck" to="{urn:switchyard-quickstart:bean-service:1.0}submitOrderResponse"/>
    </transforms>
    <domain name="TestDomain">
        <handlers>
            <handler class="org.overlord.bam.tests.actmgmt.jbossas.beanservice.ExchangeInterceptor" name="handler1"/>
        </handlers>
    </domain>
</switchyard>

 

Regards

Gary