[ 
https://issues.apache.org/jira/browse/ARTEMIS-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiri Danek updated ARTEMIS-1331:
--------------------------------
    Description: 
Consider 
{{org.apache.activemq.artemis.tests.integration.jms.client.ConnectionTest#testTXTypeInvalid}}.

If you do 

{noformat}
      Session sess = conn.createSession(false, Session.SESSION_TRANSACTED);
{noformat}

then Core JMS does not throw {{javax.jms.JMSException: acknowledgeMode 
SESSION_TRANSACTED cannot be used for an non-transacted Session}}, the other 
JMS clients do.

So either Core or the other clients do something wrong.

(See full reproducer at 
https://github.com/jdanekrh/jms-reproducers/blob/master/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ConnectionTest.java)

  was:
Consider 
{{org.apache.activemq.artemis.tests.integration.jms.client.ConnectionTest#testTXTypeInvalid}}.

If you do 

{noformat}
      Session sess = conn.createSession(false, Session.SESSION_TRANSACTED);
{noformat}

then Core JMS does not throw {{javax.jms.JMSException: acknowledgeMode 
SESSION_TRANSACTED cannot be used for an non-transacted Session}}, the other 
JMS clients do.

So either Core or the other clients do something wrong.


> JMS test ConnectionTest#testTXTypeInvalid passes with Core JMS 
> (artemis-jms-client) and fails with the other ones
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1331
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1331
>             Project: ActiveMQ Artemis
>          Issue Type: Test
>    Affects Versions: 2.3.0
>            Reporter: Jiri Danek
>            Priority: Trivial
>
> Consider 
> {{org.apache.activemq.artemis.tests.integration.jms.client.ConnectionTest#testTXTypeInvalid}}.
> If you do 
> {noformat}
>       Session sess = conn.createSession(false, Session.SESSION_TRANSACTED);
> {noformat}
> then Core JMS does not throw {{javax.jms.JMSException: acknowledgeMode 
> SESSION_TRANSACTED cannot be used for an non-transacted Session}}, the other 
> JMS clients do.
> So either Core or the other clients do something wrong.
> (See full reproducer at 
> https://github.com/jdanekrh/jms-reproducers/blob/master/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ConnectionTest.java)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to