"kabir.khan(a)jboss.com" wrote :
| This needs to be something that is visible from aop-mc-int, which we probably do not want to make dependent on spring-int.
|
Sure, absolutely no aop-mc-int --> spring-int dependency.
But we are thinking of enabling such features from other IoC frameworks on top of existing core MC code, since as you can see MC already provides such architecture that implementing this is trivial. :-)
If you could provide me with some pseudo code or point me to some hooks (into aop-mc-int) on where I can plugin this features from the kernel module.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051294#4051294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051294
It's easier than that.
You just need to pass the maxDeliveryAttempts value into the constructor of the ServerConsumerEndpoint, in the method ServerSessionEndpoint::createConsumerDelegateInternal.
Take a look at how this is already done for expiryQueue or dlq which also has a local override that takes precendence over the server peer value.
Then you just need to remove the maxDeliveryAttempts attribute from the session and make sure you pass the correct value into ServerSessionEndpoint methods when called from ServerConsumerEndpoint
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051280#4051280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051280
Hi,
I'm working on http://jira.jboss.com/jira/browse/JBMESSAGING-938, implementing MaxDeliveryAttempts for destinations. I need to change ServerSessionEndpoint.cancelDeliveryInternal to take the destination's max delivery attempts into account, but I see no way to get to the destination given only a Delivery or Cancel object.
I noticed that destinations are implemented as DeliveryObservers attached to a particular delivery. Should DeliveryObserver interface be enhanced to include getMaxDeliveryAttempts() method or maybe shouldCancel(int deliveryCount)? Or is there another way?
Sergey
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051265#4051265
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051265