-
1. Re: Problem with retry in JMS using JBOSS 5.0
krishna.b May 9, 2012 8:53 AM (in response to krishna.b)Hi all,
Did I omit something in my description or the information I provided is not sufficient for the case?
Thanks for your help.
-
2. Re: Problem with retry in JMS using JBOSS 5.0
wdfink May 9, 2012 9:00 AM (in response to krishna.b)I'm not sure whether you can change the behaviour as you wish.
One option might that you ack the message in your code. Other option might be the transactional behviour.
-
3. Re: Problem with retry in JMS using JBOSS 5.0
krishna.b May 9, 2012 1:08 PM (in response to wdfink)Hi Fink,
Can you suggest me the API which i have to look at for sending acknowledgement or how to change the transactional behaviour
-
4. Re: Problem with retry in JMS using JBOSS 5.0
wdfink May 9, 2012 1:26 PM (in response to krishna.b)If you use MDB's the transaction can be declared at the onMessage method by descriptor or annotation (e.g. XDoclet if you use EJB2.1).
If you use a client you decide by creating the session connection.createSession(boolean transactional, Session.CLIENT_ACKNOWLEDGE) [or AUTO_ACK, TRANSACTED].
See javadoc of the methods.
-
5. Re: Problem with retry in JMS using JBOSS 5.0
krishna.b May 14, 2012 5:36 AM (in response to wdfink)Hi Fink,
In our application we are using MDB's with EJB 2.0 can you suggest us some API's or examples by which we can create transaction. We tried to set acknowledgement mode to CLIENT_ACK but we came to know that only AUTO_ACK and DUPS_OK are the only supported modes if we use MDB.
Thanks.