Index Changes

Difference between version and version     

Back to Redelivery Enhancements, or Redelivery Enhancements Info


At line 9 added 2 lines.
Component's ServiceUnitManager reads the QOS configuration from SU deployment descriptor (jbi.xml) using the utility from QOS module and sets on BaseMessagingChannel.
At line 10 changed 1 line.
It would be simple and easy if QOS library could take the complete responsibility for redelivery.
It would be simple and easy if QOS library could take the complete responsibility for redelivery both runtime and deployment.
At line 26 added 2 lines.
!! Proposals for runtime
At line 40 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 42 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 47 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 49 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 51 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 59 changed 1 line.
Component needs to know new interface MessageExchangeBuilder, & MessagingChannel interface.
Component needs to know new interface ExchangeTemplates & MessagingChannel interface.
At line 63 added 6 lines.
!! Proposal for deployment
Component's ServiceUnitManager.init(), it could set SU name and SU path on BaseMessagingChannel. BaseMessagingChannel read the QOS configuration from descriptor instead of Component setting it.
!!! 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