mirror of https://github.com/apache/activemq.git
[AMQ-9430] RuntimeConfigPlugin wire in classloader to JAXBContext
(cherry picked from commit 1e314d8dfc
)
This commit is contained in:
parent
9b81a76010
commit
abcc0dcde3
|
@ -173,7 +173,7 @@ public class RuntimeConfigurationBroker extends AbstractRuntimeConfigurationBrok
|
|||
DtoBroker jaxbConfig = null;
|
||||
if (configToMonitor != null) {
|
||||
try {
|
||||
JAXBContext context = JAXBContext.newInstance(DtoBroker.class);
|
||||
JAXBContext context = JAXBContext.newInstance(DtoBroker.class.getPackageName(), DtoBroker.class.getClassLoader());
|
||||
Unmarshaller unMarshaller = context.createUnmarshaller();
|
||||
unMarshaller.setSchema(getSchema());
|
||||
|
||||
|
|
Loading…
Reference in New Issue