activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jan Gerritsen (JIRA)" <>
Subject [jira] [Created] (AMQ-3899) XAQueueConnectionFactory is not able to create normal QueueConnections
Date Tue, 26 Jun 2012 11:50:43 GMT
Willem Jan Gerritsen created AMQ-3899:

             Summary: XAQueueConnectionFactory is not able to create normal QueueConnections
                 Key: AMQ-3899
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.6.0
            Reporter: Willem Jan Gerritsen

The ActiveMQXAConnectionFactory has a method: QueueConnection createQueueConnection(). This
method returns an instance of ActiveMQXAConnection.

This connection cannot handle transacted sessions:
	public void create_message_producer_and_send() throws Exception {
		QueueSession queueSession = queueConnection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
		MessageProducer producer = queueSession.createProducer(queueSession.createQueue(queueName));
		BytesMessage jmsMessage = queueSession.createBytesMessage();
		jmsMessage.writeBytes("Hello world".getBytes());
		queueSession.commit(); // --> fail with TransactionInProgressException

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message