For those travelling this way themselves, I found that using...
| void onMessage( Message p_message )
| {
| if ( p_message.getJMSRedelivered()) return;
| ...
|
...is a (slightly yucky) way of avoiding the resends. Of course, an
ActivationConfigProperty would be better...
V
Peter,
Fantastic! I will give that a try - it sounds like exactly what I need!
With regards to catching Exceptions, that one is more tricky: I do catch
Exceptions at the top level of my onMessage (and don't rethrow them), but the
message still gets re-delivered.
Looking at the stack trace of t
We use:
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(
| propertyName = "destinationType",
| propertyValue = "javax.jms.Queue"
| ),
| @ActivationConfigProperty(
| propertyName = "destination"
If it helps, this page...
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMDB
...seems to be exactly what I want, with its mention of MaxmimumSize and
MaxTimesRedelivered, but how do I configure this in my EJB3 environment?
View the original post :
http://www.jboss.com/index.html?module=bb