This content has been marked as final.
Show 5 replies
-
1. Re: JMSConnectionFactory ignoring CF.preACK attribute
clebert.suconic Aug 26, 2009 4:18 PM (in response to clebert.suconic)I mean, that is happening on HornetQConnection::createSession -> HornetQConnection::createSessionInternal (not on the CF)
-
2. Re: JMSConnectionFactory ignoring CF.preACK attribute
timfox Aug 26, 2009 6:18 PM (in response to clebert.suconic)I don't think the server side is relevant.
The attribute will be ignored even if you create the connection factory programmatically on the client side. -
3. Re: JMSConnectionFactory ignoring CF.preACK attribute
clebert.suconic Aug 26, 2009 6:29 PM (in response to clebert.suconic)I don't think the server side is relevant.
Yes... I meant the attribute defined at the CF. -
4. Re: JMSConnectionFactory ignoring CF.preACK attribute
clebert.suconic Aug 27, 2009 10:07 AM (in response to clebert.suconic)I believe I should still ignore PRE-ACK on SessionTransacted.
I' m not sure about AUTO_ACK:if (acknowledgeMode == Session.SESSION_TRANSACTED) { session = sessionFactory.createSession(username, password, isXA, false, false, false, transactionBatchSize); } else if (acknowledgeMode == Session.AUTO_ACKNOWLEDGE) { session = sessionFactory.createSession(username, password, isXA, true, true, false, 0); } else if (acknowledgeMode == Session.DUPS_OK_ACKNOWLEDGE) { session = sessionFactory.createSession(username, password, isXA, true, true, sessionFactory.isPreAcknowledge(), dupsOKBatchSize); } else if (acknowledgeMode == Session.CLIENT_ACKNOWLEDGE) { session = sessionFactory.createSession(username, password, isXA, true, false, sessionFactory.isPreAcknowledge(), transactionBatchSize); } else if (acknowledgeMode == HornetQSession.PRE_ACKNOWLEDGE) { session = sessionFactory.createSession(username, password, isXA, true, false, true, transactionBatchSize); }
-
5. Re: JMSConnectionFactory ignoring CF.preACK attribute
clebert.suconic Aug 27, 2009 4:08 PM (in response to clebert.suconic)I have sent a message on the dev-list, since the forum was down at the time. Posting it here now since the forum is back:
http://lists.jboss.org/pipermail/hornetq-dev/2009-August/000006.html"Clebert on hornetq devlist" wrote:
I just wrote a quick test, and rollback wouldn't work if pre-ack. So..
what' s the expected semantic of pre-ACK on transactions?
IMIO, preACK should be ignored if SessionType = Transacted (and that
should be of course documented):
The test is committed as
org.hornetq.tests.integration.jms.client.PreACKJMSTest
The failing test is disabled_testPreACKTransactional. To run it you can
simply remove the disabled.