users@jms-spec.java.net

[jms-spec users] [jsr343-experts] Inconsistence on Javadoc regarding XAQueueConnection and XAConnection

From: Clebert Suconic <clebert.suconic_at_gmail.com>
Date: Tue, 12 Feb 2013 15:54:52 -0600

Hey I have a quick question.. this seems an inconsistency:


on XAConnection, a createSession is supposed to return a Connection

http://docs.oracle.com/javaee/6/api/javax/jms/XAConnection.html#createSession(boolean,%20int)



While on a QueueConnection a createSession is supposed to return a
XAConnection
http://docs.oracle.com/javaee/1.3/api/javax/jms/XAQueueConnection.html#createQueueSession(boolean,%20int)



Is that a typo on the spec? from what I have seen around users are
expecting the super class to be respected an not have the semantic changing
by just getting an XAConnection or XQueueConnection.

We are doing a new release of HornetQ and I was reviewing our
implementation when I bumped into this. that seems a typo to me.


What you guys think?