use of com.sun.enterprise.connectors.ActiveOutboundResourceAdapter in project Payara by payara.
the class ConnectorAdminObjectAdminServiceImpl method addAdminObject.
public void addAdminObject(String appName, String connectorName, ResourceInfo resourceInfo, String adminObjectType, String adminObjectClassName, Properties props) throws ConnectorRuntimeException {
ActiveResourceAdapter ar = _registry.getActiveResourceAdapter(connectorName);
if (ar == null) {
ifSystemRarLoad(connectorName);
ar = _registry.getActiveResourceAdapter(connectorName);
}
if (ar instanceof ActiveOutboundResourceAdapter) {
ActiveOutboundResourceAdapter aor = (ActiveOutboundResourceAdapter) ar;
aor.addAdminObject(appName, connectorName, resourceInfo, adminObjectType, adminObjectClassName, props);
} else {
ConnectorRuntimeException cre = new ConnectorRuntimeException("This adapter is not 1.5 compliant");
_logger.log(Level.SEVERE, "rardeployment.non_1.5_compliant_rar", resourceInfo);
throw cre;
}
}
Aggregations