Sometimes some messages in a QueueChannel will never be consumed because, for instance, timeout of the receiver. Next executions of receive should not consume this old-messages so it would be useful to clear the queue with the clear() QueueChannel method.
XML-configured queue channel can't be retrieve from application context as concrete class QueueChannel without risking of ClassCastException. As clear() method is only declare in concrete class and not in an interface so its not possible to call it from the class that retrieves the queue channel.
occus3 opened INT-2114 and commented
Sometimes some messages in a QueueChannel will never be consumed because, for instance, timeout of the receiver. Next executions of receive should not consume this old-messages so it would be useful to clear the queue with the clear() QueueChannel method.
XML-configured queue channel can't be retrieve from application context as concrete class QueueChannel without risking of ClassCastException. As clear() method is only declare in concrete class and not in an interface so its not possible to call it from the class that retrieves the queue channel.
Affects: 2.0.5
Reference URL: http://forum.springsource.org/showthread.php?114264-QueueChannel-ClassCastException
Issue Links:
The text was updated successfully, but these errors were encountered: