Qpid
  1. Qpid
  2. QPID-3131

AMQConnectionFactory getObjectInstance does not recognize AMQDestination

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.11
    • Fix Version/s: Future
    • Component/s: Java Client
    • Labels:
    • Environment:

      All platforms. Java cilent.

      Description

      Currently the AMQConnectionFactory does not allow for AMQDestination to be created in getObjectInstance. AMQDestination specifies AMQConnectionFactory as it's ObjectFactory, however, when an attempt is made to recreate the AMQDestination null is returned being that the AMQConnectionFactory does not provide for this type. This came up as a result of work on the JCA admin objects for destinations in the JCA adapter.

      1. qpid-3131.patch
        3 kB
        Weston M. Price

        Activity

        Hide
        Weston M. Price added a comment -

        The original description of this bug was incorrect. In essence, the real issue is that when using the ADDR syntax or when the exchange class cannot be determined, the AMQDestination class will construct an AMQAnyDestination. By default, all destinations use the AMQConnectionFactory as the javax.naming.spi.ObjectFactory. However, the AMQConnectionFactory did not provide for the creation of an AMQAnyDestination in getObjectInstance. The attached patch (qpid-3131.patch) addresses this. A unit test has been added to the ConnectionFactoryTest testing the new behavior.

        Show
        Weston M. Price added a comment - The original description of this bug was incorrect. In essence, the real issue is that when using the ADDR syntax or when the exchange class cannot be determined, the AMQDestination class will construct an AMQAnyDestination. By default, all destinations use the AMQConnectionFactory as the javax.naming.spi.ObjectFactory. However, the AMQConnectionFactory did not provide for the creation of an AMQAnyDestination in getObjectInstance. The attached patch (qpid-3131.patch) addresses this. A unit test has been added to the ConnectionFactoryTest testing the new behavior.
        Hide
        Weston M. Price added a comment -

        Patch for QPID-3131

        Show
        Weston M. Price added a comment - Patch for QPID-3131
        Hide
        Robbie Gemmell added a comment -

        Updating with an unreleased version as fix-for.

        Show
        Robbie Gemmell added a comment - Updating with an unreleased version as fix-for.

          People

          • Assignee:
            Unassigned
            Reporter:
            Weston M. Price
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development