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

Keith Wall updated QPID-7598:
-----------------------------
    Description: 
The Java Broker implements two URL Stream Handlers:{{data:}} and 
{{classpath:}}.  It registers these with the JVM using the 
{{java.protocol.handler.pkgs}} system property.   Unfortunately, this technique 
only works if the Broker's JARs are loaded by the JVM's System classloader.  If 
the Broker is loaded by a child classloader (as might be the case if the Broker 
is embedded within a container, a maven plugin or testing framework) this 
technique fails. 

There seem to be a few (ugly) workaround for this problem documented on-line, 
but I have not evaluated merits.
 

  was:
The Java Broker implements two URL Stream Handlers:{{data:}} and 
{{classpath:}}.  It registers these with the JVM using the 
{{java.protocol.handler.pkgs}} system property.   Unfortunately, this technique 
only works if the Broker's JARs are loaded by the JVM's System classloader.  If 
the Broker is loaded by a child classloader (as might be the case if the Broker 
is embedded within a container, a maven plugin or testing framework) this 
technique fails. 

There seem to be a few (ugly) workaround for this problem documented on-line, 
but I have an evaluated merits.
 


> Data/Classpath URL Stream Handlers assume the Broker is loaded by the JVM's 
> system classloader
> ----------------------------------------------------------------------------------------------
>
>                 Key: QPID-7598
>                 URL: https://issues.apache.org/jira/browse/QPID-7598
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Keith Wall
>             Fix For: Future
>
>
> The Java Broker implements two URL Stream Handlers:{{data:}} and 
> {{classpath:}}.  It registers these with the JVM using the 
> {{java.protocol.handler.pkgs}} system property.   Unfortunately, this 
> technique only works if the Broker's JARs are loaded by the JVM's System 
> classloader.  If the Broker is loaded by a child classloader (as might be the 
> case if the Broker is embedded within a container, a maven plugin or testing 
> framework) this technique fails. 
> There seem to be a few (ugly) workaround for this problem documented on-line, 
> but I have not evaluated merits.
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to