* @return a message exchange factory
*/
public MessageExchangeFactory createExchangeFactory() {
MessageExchangeFactoryImpl result = createMessageExchangeFactory();
result.setContext(context);
ActivationSpec activationSpec = context.getActivationSpec();
if (activationSpec != null) {
String componentName = context.getComponentNameSpace().getName();
// lets auto-default the container-routing information
QName serviceName = activationSpec.getDestinationService();
if (serviceName != null) {
result.setServiceName(serviceName);
log.info("default destination serviceName for " + componentName + " = " + serviceName);
}
QName interfaceName = activationSpec.getDestinationInterface();
if (interfaceName != null) {
result.setInterfaceName(interfaceName);
log.info("default destination interfaceName for " + componentName + " = " + interfaceName);
}
QName operationName = activationSpec.getDestinationOperation();
if (operationName != null) {
result.setOperationName(operationName);
log.info("default destination operationName for " + componentName + " = " + operationName);
}
String endpointName = activationSpec.getDestinationEndpoint();
if (endpointName != null) {
boolean endpointSet = false;
log.info("default destination endpointName for " + componentName + " = " + endpointName);
if (serviceName != null && endpointName != null) {
endpointName = endpointName.trim();