Index Changes

Difference between version and version     

Back to Redelivery Enhancements, or Redelivery Enhancements Info


At line 44 changed 1 line.
Add new operation send(MessageExchangeBuilder mb) to com.sun.jbi.common.qos.messaging.MessagingChannel interface defined in QOS. BaseMessagingChannel implements it.
Add new operation send(ExchangeTemplates et) to com.sun.jbi.common.qos.messaging.MessagingChannel interface defined in QOS. BaseMessagingChannel implements it. ExchangeTemplates interface is defined as:
{{{
public MessageExchange createExchange() throws MessagingException;
}}}
At line 46 changed 4 lines.
MessageExchangeBuilder interface is
public interface MessageExchangeBuilder {
public MessageExchange createMessageExchange(boolean failureOnFirstAttempt);
}
QoS provides a base implementation of this interface; it is the responsibility of the component to extend with the logic to create MEx, set input, associate properties, type of MEx (InOnly/InOut), attachments, security/subject and transaction. Component would pass the object of this type to MessagingChannel.send as a parameter.
At line 51 changed 1 line.
QOS could provide implementation of this interface, it would have the logic to create MEx, set input, associate properties, type of MEx (InOnly/InOut), attachments, security/subject and transaction. Component would pass the object of this type to MessagingChannel.send as a parameter.
MessagingChannel.send delegates the call to DeliveryChannel.send with MEx object returned from callback method.
At line 53 changed 1 line.
MessagingChannel .send delegates the call to DeliveryChannel.send with MEx object returned from callback method.
MessagingChannel.accept would delegate to DeliveryChannel.accept, if the MEx received is set to error and there is room for retry, it calls ExchangeTemplates.createMessageExchange(). If this operation returns MessageExchange object, it proceeds with redelivery. If the callback method throws Exception, it would return errored MEx to component.
At line 55 removed 2 lines.
MessagingChannel.accept would delegate to DeliveryChannel.accept, if the MEx received is set to error and there is room for retry, it calls MessageExchangeBuilderObject.createMessageExchange(true). If this operation returns MessageExchange object, it proceeds with redelivery. If the callback method throws Exception, it would return errored MEx to component.
At line 63 changed 1 line.
Component needs to know new interface MessageExchangeBuilder, & MessagingChannel interface.
Component needs to know new interface ExchangeTemplates & MessagingChannel interface.
At line 66 added 3 lines.
!!! Include Throttling in QOS
QOS library can be enhanced to do Throttling. Should it pause the invokes from the component for given EP/SU when SU is stopped?

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-8) was last changed on 06-Aug-08 15:28 PM, -0700 by KevanSimpson