[JBoss-user] [EJB 3.0] - Re: Limit number of concurrent MDBs and number of retries?

2006-03-28 Thread kenrod
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

[JBoss-user] [EJB 3.0] - Re: Limit number of concurrent MDBs and number of retries?

2006-03-27 Thread kenrod
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

[JBoss-user] [EJB 3.0] - Re: Limit number of concurrent MDBs and number of retries?

2006-03-27 Thread peter_kaas
We use: | @MessageDriven(activationConfig = { | @ActivationConfigProperty( | propertyName = "destinationType", | propertyValue = "javax.jms.Queue" | ), | @ActivationConfigProperty( | propertyName = "destination"

[JBoss-user] [EJB 3.0] - Re: Limit number of concurrent MDBs and number of retries?

2006-03-26 Thread kenrod
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