Thanks Guillaume.
Let me try that.
Regards,
Chintan Oza
Software Architect
C-SAM India Pvt. Ltd.
www.c-sam.com
email: [EMAIL PROTECTED]
+91.265.2324018 (O)
+91.9898085046 (M)
[EMAIL PROTECTED] wrote:
Take a look at
http://cvs.servicemix.codehaus.org/servicemix/base/src/test/resources/org/servicemix/jbi/config/example-spring.xml?rev=1.9&view=auto
This is a pure spring xml configuration file that should do
the trick.
Cheers,
Guillaume Nodet
---------- Initial Header -----------
From : Chintan Oza <[EMAIL PROTECTED]>
To : [email protected]
Cc :
Date : Wed, 05 Oct 2005 18:59:21 +0530
Subject : [servicemix-user] Problem in defining
destinationService in PURE SPRING configuration.
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)
------------ ALICE HAUT DEBIT A 29,95 EUR/MOIS ------------
ALICEBOX, l'offre Internet tout en 1 : ADSL, téléphonie, modem Wi-Fi et en
exclusivité
la hotline gratuite 24h/24 ! Soumis à conditions. Pour en profiter cliquez ici
http://abonnement.aliceadsl.fr