-
1. messagelistener and runtime exception
clebert.suconic Apr 4, 2011 10:58 AM (in response to maximilien)Inside jboss probably means InVM
InVM has a pretty small latency (no network), so I don't think that should be really an issue.
Are you using MDBs? You will have a TX on every message received anyways.. I don't think you would have an issue here.
-
2. Re: messagelistener and runtime exception
maximilien Apr 4, 2011 11:08 AM (in response to clebert.suconic)Hi Clebert,
yes i'm using invm connection, but with jms messagelistener :
Session session = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(queue, getMessageSelector());
consumer.setMessageListener(this);
(oh yes i forgot to mention we are using selector on queue ;-) )
Then if in my onMessage() i throw a runtimeException i was thinking that there is only this message that will be placed in scheduling but what happens is that all messages in queue are placed in scheduling.
Thanks,
Maximilien
-
3. Re: messagelistener and runtime exception
clebert.suconic Apr 4, 2011 12:38 PM (in response to maximilien)yes.. that's expected for now at least
-
4. messagelistener and runtime exception
maximilien Apr 5, 2011 3:01 AM (in response to clebert.suconic)ok, maybe i can make a feature request to reintegrate buffered messages directly on queue instead of scheduling them ?
Thanks,
Maximilien
-
5. messagelistener and runtime exception
clebert.suconic Apr 5, 2011 9:52 AM (in response to maximilien)sure. you can do the feature request.
There's also a feature request to pause consuming for a few seconds. not just re-schedule it. A few users were complaining about order issues.