Hi.
We are using PURE SPRING configuration to integrate servicemix with our
product.
We are having difficulty in declaring "destinationService" for one of
our component.
I saw the example provided in "Spring support" section on the servicemix
website.
<beans xmlns:foo="http://servicemix.org/cheese/">
<container id="jbi">
<components>
<component id="sender" service="foo:sender"
class="org.servicemix.components.pojo.MySender"
destinationService="foo:receiver"/>
<component id="receiver" service="foo:receiver"
class="org.servicemix.components.pojo.MyReceiver"/>
</components>
</container>
</beans>
I am trying to use the same components with PURE SPRING configuration in
the following way.
But i couldnt find a way to define the "destinationService" in this
configuration.
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- the JBI container -->
<bean id="jbi"
class="org.servicemix.jbi.container.SpringJBIContainer">
<property name="componentNames">
<list>
<value>sender</value>
<value>receiver</value>
</list>
</property>
</bean>
<!-- Sender -->
<bean id="sender" class="org.servicemix.components.pojo.MySender">
<property name="service">
<ref bean="senderServiceName"></ref>
</property>
</bean>
<!-- Receiver -->
<bean id="receiver" class="org.servicemix.components.pojo.MyReceiver">
<property name="service">
<ref bean="receiverServiceName"></ref>
</property>
</bean>
<!-- Sender service name -->
<bean id="senderServiceName" class="javax.xml.namespace.QName">
<constructor-arg value="http://localhost" />
<constructor-arg value="foo:sender" />
</bean>
<!-- Receiver service name -->
<bean id="receiverServiceName" class="javax.xml.namespace.QName">
<constructor-arg value="http://localhost" />
<constructor-arg value="foo:receiver" />
</bean>
</beans>
Does anyone have an idea how to do that?
Thanks in advance
Chintan Oza
Software Architect
C-SAM India Pvt. Ltd.
www.c-sam.com
email: [EMAIL PROTECTED]
+91.265.2324018 (O)
+91.9898085046 (M)