activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-989) Individual Acknowledge: ActiveMQConnectionFactory.createContext(final int sessionMode) throws exception for ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE
Date Thu, 23 Feb 2017 16:39:44 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15880796#comment-15880796
] 

ASF subversion and git services commented on ARTEMIS-989:
---------------------------------------------------------

Commit 0b829558b32ac1fe34fab3f18cf2730a7a919e7c in activemq-artemis's branch refs/heads/master
from [~jbertram]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=0b82955 ]

ARTEMIS-989 JMS2 context support custom session modes


> Individual Acknowledge: ActiveMQConnectionFactory.createContext(final int sessionMode)
throws exception for ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-989
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-989
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>            Reporter: Vishal Agarwal
>            Assignee: Justin Bertram
>             Fix For: 2.0.0, 1.5.4
>
>
> Artemis document says that it supports the Individual acknowledgement https://activemq.apache.org/artemis/docs/1.5.3/pre-acknowledge.html
> But passing the ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE  to ActiveMQConnectionFactory.createContext(final
int sessionMode) throws the JMSRuntimeException("Invalid Session Mode: " + mode).
> Actually there is a discrepancy in "createContext(String userName, String password, int
sessionMode)" method. validateSessionMode(int mode) throws the exception but while creating
the context(in the same method) ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE. is accepted.
> ActiveMQConnection connection = createConnectionInternal(userName, password, false, ActiveMQConnection.TYPE_GENERIC_CONNECTION);
>          return connection.createContext(sessionMode);
> If we add
>          case ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE:
>          case ActiveMQJMSConstants.PRE_ACKNOWLEDGE:
> in the "validateSessionMode" method it will work fine.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message