nirosha
2013-06-19 09:47:04 UTC
Configuration Xml is like this....
<jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616"
validateConnections="true" doc:name="Active MQ"/>
<flow name="Splitter1Flow1" doc:name="Splitter1Flow1">
<jms:inbound-endpoint doc:name="JMS" connector-ref="Active_MQ"
queue="splitip"/>
<splitter expression="//stock/items" evaluator="xpath"
doc:name="Splitter"/>
<mulexml:dom-to-xml-transformer name="DomToXml2"
encoding="UTF-8"/>
<choice doc:name="Choice">
<when evaluator="xpath" expression="//category/text()='Books'">
<jms:outbound-endpoint doc:name="book"
connector-ref="Active_MQ" queue="book"/>
</when>
<when evaluator="xpath" expression="//category/text()='Toys'">
<jms:outbound-endpoint doc:name="toys"
connector-ref="Active_MQ" queue="toys"/>
</when>
<otherwise>
<jms:outbound-endpoint doc:name="JMS"
connector-ref="Active_MQ" queue="mobiles"/>
</otherwise>
</choice>
<collection-aggregator failOnTimeout="true" doc:name="Collection
Aggregator"/>
<jms:outbound-endpoint queue="output"
connector-ref="Active_MQ" doc:name="JMS"/>
</flow>
the code is working fine till choice....jms queues are gettig the xml
messages.....the problem is the messages are to be aggregated and should be
sent to another JMS queue....
please provide the solution.....
thanks in advance
--
View this message in context: http://mule.1045714.n5.nabble.com/collection-aggregator-usage-tp5718114.html
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
<jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616"
validateConnections="true" doc:name="Active MQ"/>
<flow name="Splitter1Flow1" doc:name="Splitter1Flow1">
<jms:inbound-endpoint doc:name="JMS" connector-ref="Active_MQ"
queue="splitip"/>
<splitter expression="//stock/items" evaluator="xpath"
doc:name="Splitter"/>
<mulexml:dom-to-xml-transformer name="DomToXml2"
encoding="UTF-8"/>
<choice doc:name="Choice">
<when evaluator="xpath" expression="//category/text()='Books'">
<jms:outbound-endpoint doc:name="book"
connector-ref="Active_MQ" queue="book"/>
</when>
<when evaluator="xpath" expression="//category/text()='Toys'">
<jms:outbound-endpoint doc:name="toys"
connector-ref="Active_MQ" queue="toys"/>
</when>
<otherwise>
<jms:outbound-endpoint doc:name="JMS"
connector-ref="Active_MQ" queue="mobiles"/>
</otherwise>
</choice>
<collection-aggregator failOnTimeout="true" doc:name="Collection
Aggregator"/>
<jms:outbound-endpoint queue="output"
connector-ref="Active_MQ" doc:name="JMS"/>
</flow>
the code is working fine till choice....jms queues are gettig the xml
messages.....the problem is the messages are to be aggregated and should be
sent to another JMS queue....
please provide the solution.....
thanks in advance
--
View this message in context: http://mule.1045714.n5.nabble.com/collection-aggregator-usage-tp5718114.html
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email