[jboss-user] [EJB/JBoss] - Re: Problems with MDBs in JBoss 5.0

2009-05-01 Thread idhira
It seems you are using a transacted session. Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE); Try calling session.commit() before closing the session. Or you can send in false into createSession and you don't have to call session.commit() View the original post : ht

[jboss-user] [EJB/JBoss] - Handling Application Exceptions within MDBs and EJBs

2009-04-28 Thread idhira
I am running JBoss 4.2.3 with JBoss Messaging 1.4.2.GA-SP1 This is related to Container Managed Transactions and handling Application Exceptions within EJBs and MDBs. The following are the exceptions I use: MyRetryException - Extends Exception MyEJBRetryRuntimeException - Extends Runtime Excepti

[jboss-user] [JBoss Messaging] - Exponential back of period - redeliver delay

2008-11-06 Thread idhira
I basically need a message to be redelivered right away or within (1-2) seconds, so I set that attribute on the queue accordingly. Scenario: In an MDB, say that I am trying to persist a message to the db but the db goes down. The db will most probably not come back up by the time the message is