+ aClass.getClassLoader());
logger.log(Level.FINEST, "classloader parent = "
+ aClass.getClassLoader().getParent());
}
ActivationSpec activationSpec =
(ActivationSpec) aClass.newInstance();
Set props = RARUtils.getMergedActivationConfigProperties(getDescriptor());
AccessController.doPrivileged
(new SetMethodAction(activationSpec, props));
activationSpec.setResourceAdapter(ra);
//GF issue -3462 DIRECT mode MDB does not connect to remote broker when addresslist is overridden
//Need to set properties after the setResourceAdapter method is called
AccessController.doPrivileged
(new SetMethodAction(activationSpec, props));
/*
AccessController.doPrivileged(new PrivilegedAction() {
public java.lang.Object run() {
activationSpec.setResourceAdapter(ra);
return null;
}
});
*/
boolean validate =
"true".equals(System.getProperty("validate.jms.ra"));
if (validate) {
try {
activationSpec.validate();
} catch (Exception ex) {
logger.log(Level.SEVERE,
"endpointfactory.as_validate_Failed", ex);
}
}