Search in sources :

Example 1 with ActiveOutboundResourceAdapter

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;
    }
}
Also used : ActiveOutboundResourceAdapter(com.sun.enterprise.connectors.ActiveOutboundResourceAdapter) ConnectorRuntimeException(com.sun.appserv.connectors.internal.api.ConnectorRuntimeException) ActiveResourceAdapter(com.sun.enterprise.connectors.ActiveResourceAdapter)

Aggregations

ConnectorRuntimeException (com.sun.appserv.connectors.internal.api.ConnectorRuntimeException)1 ActiveOutboundResourceAdapter (com.sun.enterprise.connectors.ActiveOutboundResourceAdapter)1 ActiveResourceAdapter (com.sun.enterprise.connectors.ActiveResourceAdapter)1