Hi together,

after digging deeper and some hints by Prabath S., I can now answear
this question by myself ;-)

In the case of an backend-application error the message should get
dequeued by the ScheduledMessageForwardingProcessor. As the processor
calls the fault-sequence in case of an backend-application, there
might be a bug in the implementation of this processor:
https://wso2.org/jira/browse/ESBJAVA-1045

Jochen


---------- Forwarded message ----------
From: Jochen Traunecker
Date: 2012/6/14
Subject: ScheduledMessageForwardingProcessor - dequeue messages
To: [email protected]


Hi together,

I'm working on a proof-of-concept project and I'm following the
store-and-forward-messaging pattern example [1].

There is a question regarding ScheduledMessageForwardingProcessor and
it's intended behaviour:

Is there a way to dequeue a message stored in the message store (jms
queue) in case of an (specific) fault?

The idea was to point the ScheduledMessageForwardingProcessor to a
custom fault-sequence, and in cases of application errors dequeue the
specific message.

Although the property "message.processor.fault.sequence" was set and
the sequence is called in case of an fault (the log shows up in the
console), the message still stays in the message store (queue).

This is the snippet of the fault sequence:

<sequence xmlns="http://ws.apache.org/ns/synapse"; name="MyFaultSequence">
  <log level="full" category="ERROR">
     <property name="MSG" value="+++++++++++FAULT+++++++++++++++++++" />
  </log>
   <!-- complex fault handling omitted in this snippet -->
   <drop />
</sequence>

Any help and hints would be appreciated.

Thanks,
Jochen


[1] 
http://wso2.org/library/articles/2011/12/implementing-store-forward-messaging-patterns-wso2esb-part-2
_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to