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

dead code in method createSession of class ActiveMQConnection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.8.0, 5.9.0, 5.9.1, 5.10.0
    • 5.14.0
    • JMS client
    • None
    • 64bit win7+64bit jdk1.7.0_72

    Description

      org.apache.activemq.ActiveMQConnection ==>
      in method "public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException"

      in statement [return new EMQSession ... ]
      code [acknowledgeMode == Session.SESSION_TRANSACTED] is dead.
      because this condition has been decided in method entrance.
      Futhermore when using tranaction,the acknowledge mode must be 0.
      This is right or not?

      Attachments

        Activity

          People

            Unassigned Unassigned
            can_do can_do
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: