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

Zheng Feng edited comment on AMQ-7177 at 4/10/19 2:11 AM:
----------------------------------------------------------

OK, I understand. So it looks more like a new feature than a bug. Did we have 
the clear explanation of the XA Transaction behavior in the documentation ? It 
could be helpful to declare this information.

I'm happy to close this issue as "Information Provided" and also close the PR.


was (Author: zhfeng):
OK, I understand. So it looks more like a new feather than a bug. Did we have 
the clear explanation of the XA Transaction behavior in the documentation ? It 
could be helpful to declare this information.

I'm happy to close this issue as "Information Provided" and also close the PR.

> ActiveMQXAConnection should not override the createSession method
> -----------------------------------------------------------------
>
>                 Key: AMQ-7177
>                 URL: https://issues.apache.org/jira/browse/AMQ-7177
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>            Reporter: Zheng Feng
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It should not override the method of the super class. And in the term of the 
> [JMS spec|https://docs.oracle.com/javaee/7/api/javax/jms/XAConnection.html], 
> it needs to return the Session but not the XASession.
> {code:java}
> public Session createSession(boolean transacted, int acknowledgeMode) throws 
> JMSException {
>     checkClosedOrFailed();
>     ensureConnectionInfoSent();
>     return new ActiveMQXASession(this, getNextSessionId(), getAckMode(), 
> isDispatchAsync());
> }
> {code}
> The simple fix could change the method name createSession() to 
> createSessionInternal().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to