Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2079

conflict between checking validity of createSession args and requirement to ignore them in managed environment

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.0
    • 5.3.0
    • Connector
    • None

    Description

      Since amq 4 someone added some parameter checking to ActiveMQConnection.createSession. This seems like a good idea until you get to the connector and read the ejb spec where it says in a managed environment these parameters should be ignored. I'm not sure how much they really can be ignored if an xa tx is not present. What I've done is to enhance the checking in ActiveMQConnection.createSession to be more thorough with better messages and to modify the ra ManagedConnectionProxy to modify one of the parameters if they are inconsistent (i.e. transacted == false, but ack mode == SESSION_TRANSACTED) (I change it to AUTO_ACKNOWLDEDGE). I haven't found this causing any problems.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            djencks David Jencks
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment