aspose file tools*
The moose likes SOA and ESB and the fly likes mule 2.0 and JMS endpoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » SOA and ESB
Bookmark "mule 2.0 and JMS endpoint" Watch "mule 2.0 and JMS endpoint" New topic
Author

mule 2.0 and JMS endpoint

Sander Evanfield
Greenhorn

Joined: Oct 15, 2004
Posts: 13
When using mule 2.0, need to handle poison message for a jms endpoint. Mule goes to infinite loop

My configuration files are:

jms:endpoint name="someChannel" queue="${some.q}" connector-ref="EMSConnector"
synchronous="true">

jms:connector name="EMSConnector" acknowledgementMode="DUPS_OK_ACKNOWLEDGE" durable="false"
noLocal="true" persistentDelivery="true" maxRedelivery="3" cacheJmsSessions="true" eagerConsumer="false"
specification="1.1" connectionFactory-ref="EMSConnectionFactory" username="${ems.usr.name}" password="${ems.usr.passwd}"
redeliveryHandlerFactory-ref="RedeliveryHandlerFactory" createMultipleTransactedReceivers="false"
numberOfConcurrentTransactedReceivers="1">
<spring:property name="exceptionListener" ref="OMSExceptionStrategy"/>
</jms:connector>

<spring:bean name="RedeliveryHandlerFactory" class="org.mule.transport.jms.CountingRedeliveryHandlerFactory" />

spring:bean name="EMSConnectionFactory" class="com.tibco.tibjms.TibjmsQueueConnectionFactory">
<spring:constructor-arg value="${ems.host.name}" />
</spring:bean>

How can I redesign this to handle a poison message and prevent infinite loop.




xxx
Roger Sterling
Ranch Hand

Joined: Apr 06, 2012
Posts: 426

Sander Evanfield wrote:When using mule 2.0, need to handle poison message for a jms endpoint. Mule goes to infinite loop

...

How can I redesign this to handle a poison message and prevent infinite loop.



You might check with the SOA ESB guys over at soabus.org

Other than that , you could use

<number-of-retries>3</number-of-retries>
<retry-wait>2000</retry-wait>

or equivalent for Tibco.


You might consider other messaging platforms : Active MQ, WMQ, etc. as your JMS provider.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mule 2.0 and JMS endpoint