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;
}
Aggregations