qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-6302) InitialContextFactory implementations modify the provided environment
Date Thu, 12 Nov 2015 00:14:11 GMT

     [ https://issues.apache.org/jira/browse/QPID-6302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Godfrey resolved QPID-6302.
-------------------------------
    Resolution: Duplicate

> InitialContextFactory implementations modify the provided environment
> ---------------------------------------------------------------------
>
>                 Key: QPID-6302
>                 URL: https://issues.apache.org/jira/browse/QPID-6302
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS AMQP 1.0 Client
>    Affects Versions: 0.30
>            Reporter: Robbie Gemmell
>             Fix For: qpid-java-6.0
>
>
> 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\]:
> {quote}
> "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.
> {quote}
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message