return new InboundHandler(inflowMetaData, getServiceDomain());
}
private OutboundHandler handleReferenceBinding(JCABindingModel config, QName name) {
JCABindingModel jcaconfig = (JCABindingModel)config;
OutboundConnectionModel outboundConnectionModel = jcaconfig.getOutboundConnection();
if (outboundConnectionModel == null) {
throw JCAMessages.MESSAGES.noOutboundConnectionConfigured();
}
boolean managed = outboundConnectionModel.isManaged();
if (!managed) {
throw JCAMessages.MESSAGES.nonManagedScenarioIsNotSupportedYet();
}
ResourceAdapterModel resourceAdapterModel = outboundConnectionModel.getResourceAdapter();
if (resourceAdapterModel != null) {
Properties raProps = resourceAdapterModel.getProperties();
if (!raProps.isEmpty()) {
String raName = resourceAdapterModel.getName();
String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
if (raid == null) {
throw JCAMessages.MESSAGES.uniqueKeyForResourceAdapter(raName);
}
ResourceAdapter resourceAdapter = null;
try {
resourceAdapter = _raRepository.getResourceAdapter(raid);
PropertyEditors.mapJavaBeanProperties(resourceAdapter, raProps);
} catch (Exception e) {
throw JCAMessages.MESSAGES.couldnTAcquireTheResourceAdapter(raName, e);
}
}
}
OutboundInteractionModel outboundInteractionModel = jcaconfig.getOutboundInteraction();
if (outboundInteractionModel == null) {
throw JCAMessages.MESSAGES.noOutboundInteractionConfigured();
}
ProcessorModel processorModel = outboundInteractionModel.getProcessor();
if (processorModel == null) {