[AMQ-9430] RuntimeConfigPlugin wire in classloader to JAXBContext

(cherry picked from commit 1e314d8dfc)
This commit is contained in:
Matt Pavlovich 2024-04-11 08:45:06 -05:00 committed by JB Onofré
parent 9b81a76010
commit abcc0dcde3
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());