[AMQ-9430] RuntimeConfigPlugin wire in classloader to JAXBContext

This commit is contained in:
Matt Pavlovich 2024-04-11 08:45:06 -05:00
parent 78d9555233
commit 1e314d8dfc
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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());