Hello Gert,

Thank you for the reply.

I had modified as you had suggested by giving a reference to the endpoint,
but I was getting a NullPointerException when trying to deploy the SU.

Below is my consumer xbean.xml.

Do you see anything wrong in my below config?

Thanks,
Arun

<beans xmlns:http="http://servicemix.apache.org/http/1.0";
    xmlns:tx="http://jbimulti2.iaas.uni-stuttgart.de/taxiscenario";
xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="
       http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-2011.01.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
        
     <classpath>
                <library>osgi:org.apache.servicemix.jbi.cluster.engine</library>
        </classpath>    
           
    <http:soap-consumer id="soapConsumer" service="tx:httpSoapConsumer"
                endpoint="TaxiProviderHttpSoapConsumerEndpoint" 
        
locationURI="http://localhost:8163/httpSoapConsumer/TaxiProviderHttpSoapConsumerEndpoint";
                targetService="tx:httpSoapProvider"
                targetEndpoint="httpSoapProviderEndpoint" 
wsdl="classpath:service.wsdl"
                useJbiWrapper="false"
                />
                
        <bean
class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration">
                <property name="endpoint" ref="soapConsumer" />
        </bean>         
        
        *<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />*

</beans>

<task-id>deploy</task-id>
                        <task-result>FAILED</task-result>
                        <message-type>ERROR</message-type>
                       
<task-status-msg><msg-loc-info><loc-token/><loc-message>Could not deploy
xbean service unit</loc-message></msg-loc-info></task-status-msg>

Caused by: java.lang.NullPointerException
        at
org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:110)
        at
org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:184)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
        ... 27 more



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/JBI-cluster-not-working-with-ActiveMQPool-tp5719698p5719766.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to