Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2557

Don't export openwire-protocol JMS spec dependency

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.10.1
    • 2.11.0
    • Broker, OpenWire
    • None

    Description

      artemis-openwire-protocol has a dependency on geronimo-jms-1.1_spec

             <dependency>
               <groupId>org.apache.geronimo.specs</groupId>
               <artifactId>geronimo-jms_1.1_spec</artifactId>
               <version>1.1.1</version>
            </dependency>
      

      However other components such as artemis-jms-server have a dependency on geronimo-jms_2.0_spec which carry a superset of the same interfaces, but with subtle differences (such as the JMSContext in ConnectionFactory)

      If your have both components in a dependency hierarchy you may end up with a classpath including both jar which can lead to a behavior that is
      a) inconsistent, since one or the other jar may have been loaded first to resolve a given interface
      b) funny, if a component compiled against an interface from 2.0 try to use one from 1.1.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              slx SL
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h