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