Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6302

InitialContextFactory implementations modify the provided environment

    XMLWordPrintableJSON

Details

    Description

      Both the AMQP 0-x and 1.0 JMS clients modify the environment hashmap provided to them in their InitialContextFactory implementations by adding any properties loaded from a properties file into it. This is against the API requirements[1]:

      "The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.

      The affected classes are:
      org.apache.qpid.jndi.PropertiesFileInitialContextFactory and org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialContextFactory

      [1] http://docs.oracle.com/javase/7/docs/api/javax/naming/spi/InitialContextFactory.html#getInitialContext(java.util.Hashtable)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              robbie Robbie Gemmell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: