Search in sources :

Example 1 with MessageDrivenComponent

use of org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent in project wildfly by wildfly.

the class MessageDrivenComponentCreateService method createComponent.

@Override
protected BasicComponent createComponent() {
    String configuredResourceAdapterName;
    if (resourceAdapterName == null) {
        configuredResourceAdapterName = defaultResourceAdapterServiceInjectedValue.getValue().getDefaultResourceAdapterName();
    } else {
        configuredResourceAdapterName = resourceAdapterName;
    }
    // Match configured value to the actual RA names
    final String activeResourceAdapterName = searchActiveResourceAdapterName(configuredResourceAdapterName);
    final ActivationSpec activationSpec = getEndpointDeployer().createActivationSpecs(activeResourceAdapterName, messageListenerInterface, activationProps, getDeploymentClassLoader());
    final MessageDrivenComponent component = new MessageDrivenComponent(this, messageListenerInterface, activationSpec, deliveryActive, deliveryControllerName, activeResourceAdapterName);
    // set the endpoint
    final EJBUtilities ejbUtilities = this.ejbUtilitiesInjectedValue.getValue();
    final Endpoint endpoint = ejbUtilities.getEndpoint(activeResourceAdapterName);
    component.setEndpoint(endpoint);
    return component;
}
Also used : Endpoint(org.jboss.jca.core.spi.rar.Endpoint) ActivationSpec(javax.resource.spi.ActivationSpec) EJBUtilities(org.jboss.as.ejb3.component.EJBUtilities)

Aggregations

ActivationSpec (javax.resource.spi.ActivationSpec)1 EJBUtilities (org.jboss.as.ejb3.component.EJBUtilities)1 Endpoint (org.jboss.jca.core.spi.rar.Endpoint)1