All,

I have two cxf-se endpoints one called MathService and one called
CXFExceptionService, I expose these services in cxf-bc using the below
configuration

<cxfbc:consumer wsdl="classpath:MathService.wsdl"
        locationURI="https://localhost:8092/Services/MathService";
        targetService="samples:MathService" targetEndpoint="MathServicePort"
        busCfg="cxf-samples.xml" />

<!-- CXF Exception Service -->
<cxfbc:consumer wsdl="classpath:CXFException.wsdl"
        locationURI="https://localhost:8092/Services/CXFExceptionService";
        targetService="samples:CXFException" targetEndpoint="CXFExceptionPort" 
             busCfg="cxf-samples.xml" />

the busCfg file has configuration to run the engine on port 8092 and the two
http-destination's and I get the following error 

WARNING: failed [email protected]:8092
java.net.BindException: Address already in use: JVM_Bind

This error as I can predict is happening because teh CXFBusIMpl is being
initialized twice and it fails the second time, but my question is I
configure my second cxfbc consumer endpoint to read the http-destination
part of the configuration only and deploy the service at the same port as
8092.

This works in servicemix-http component, I think I am missing some
configuration somewhere, Any help would be greatly appreciated

cxf-samples.xml configuration
<bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl" />

<http:destination
        name="{http://samples.com/}MathServicePort.http-destination";>
</http:destination>
        
<http:destination
        name="{http://samples.com/}CXFExceptionPort.http-destination";>
</http:destination>

<httpj:engine-factory>
        <httpj:engine port="8092">
                <httpj:tlsServerParameters>
                        <sec:keyManagers keyPassword="avocent">
                                <sec:keyStore type="JKS" password="servicemix"
                                        resource="keystore.jks" />
                        </sec:keyManagers>
                        <sec:trustManagers>
                                <sec:keyStore type="JKS" password="servicemix"
                                        resource="keystore.jks" />
                        </sec:trustManagers>
                        <sec:cipherSuitesFilter>
                                <sec:include>.*_EXPORT_.*</sec:include>
                                <sec:include>.*_EXPORT1024_.*</sec:include>
                                <sec:include>.*_WITH_DES_.*</sec:include>
                                <sec:include>.*_WITH_NULL_.*</sec:include>
                                <sec:include>.*_128_.*</sec:include>
                                <sec:exclude>.*_DH_anon_.*</sec:exclude>
                        </sec:cipherSuitesFilter>
                        <sec:clientAuthentication want="false" required="false" 
/>
                </httpj:tlsServerParameters>
        </httpj:engine>
</httpj:engine-factory>

thanks
-gopal
-- 
View this message in context: 
http://www.nabble.com/Servicemix-cxf-bc-and-multiple-wsdl%27s-on-same-port-tp23066349p23066349.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to