String uri2 = uri.substring(10); String[] parts = URIResolver.split2(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); } else if (uri.startsWith("operation:")) { String uri2 = uri.substring(10); String[] parts = URIResolver.split3(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); exchange.setOperation(new QName(parts[0], parts[2])); } else if (uri.startsWith("service:")) {
String uri2 = uri.substring(10); String[] parts = URIResolver.split2(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); } else if (uri.startsWith("operation:")) { String uri2 = uri.substring(10); String[] parts = URIResolver.split3(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); exchange.setOperation(new QName(parts[0], parts[2])); } else if (uri.startsWith("service:")) {
String uri2 = uri.substring(10); String[] parts = URIResolver.split2(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); } else if (uri.startsWith("operation:")) { String uri2 = uri.substring(10); String[] parts = URIResolver.split3(uri2); exchange.setInterfaceName(new QName(parts[0], parts[1])); exchange.setOperation(new QName(parts[0], parts[2])); } else if (uri.startsWith("service:")) {
MessageExchange exchange = message.getContent(MessageExchange.class); exchange.setOperation(new QName(parts[0], parts[2])); exchange.setInterfaceName(new QName(parts[0], parts[1]));
/** * Configures the target on the newly created exchange * @param exchange the exchange to configure * @throws MessagingException if the target could not be configured */ public void configureTarget(MessageExchange exchange, ComponentContext context) throws MessagingException { if (interf == null && service == null && uri == null) { throw new MessagingException("interface, service or uri should be specified"); } if (uri != null) { URIResolver.configureExchange(exchange, context, uri); } if (interf != null) { exchange.setInterfaceName(interf); } if (operation != null) { exchange.setOperation(operation); } if (service != null) { exchange.setService(service); if (endpoint != null) { ServiceEndpoint se = context.getEndpoint(service, endpoint); exchange.setEndpoint(se); } } }
/** * Configures the target on the newly created exchange * @param exchange the exchange to configure * @throws MessagingException if the target could not be configured */ public void configureTarget(MessageExchange exchange, ComponentContext context) throws MessagingException { if (interf == null && service == null && uri == null) { throw new MessagingException("interface, service or uri should be specified"); } if (uri != null) { URIResolver.configureExchange(exchange, context, uri); } if (interf != null) { exchange.setInterfaceName(interf); } if (operation != null) { exchange.setOperation(operation); } if (service != null) { exchange.setService(service); if (endpoint != null) { ServiceEndpoint se = context.getEndpoint(service, endpoint); exchange.setEndpoint(se); } } }
/** * Configures the target on the newly created exchange * @param exchange the exchange to configure * @throws MessagingException if the target could not be configured */ public void configureTarget(MessageExchange exchange, ComponentContext context) throws MessagingException { if (interf == null && service == null && uri == null) { throw new MessagingException("interface, service or uri should be specified"); } if (uri != null) { URIResolver.configureExchange(exchange, context, uri); } if (interf != null) { exchange.setInterfaceName(interf); } if (operation != null) { exchange.setOperation(operation); } if (service != null) { exchange.setService(service); if (endpoint != null) { ServiceEndpoint se = context.getEndpoint(service, endpoint); exchange.setEndpoint(se); } } }
protected void configureExchangeTarget(MessageExchange exchange) { if (targetUri != null) { URIResolver.configureExchange(exchange, getContext(), targetUri); } if (exchange.getInterfaceName() == null && targetInterface != null) { exchange.setInterfaceName(targetInterface); } if (exchange.getOperation() == null && targetOperation != null) { exchange.setOperation(targetOperation); } if (exchange.getService() == null && targetService != null) { exchange.setService(targetService); if (targetEndpoint != null) { ServiceEndpoint se = getContext().getEndpoint(targetService, targetEndpoint); if (se != null) { exchange.setEndpoint(se); } else { logger.warn("Target service (" + targetService + ") and endpoint (" + targetEndpoint + ")" + " specified, but no matching endpoint found. Only the service will be used for routing."); } } } }
/** * Configures the target on the newly created exchange * @param exchange the exchange to configure * @throws MessagingException if the target could not be configured */ public void configureTarget(MessageExchange exchange) throws MessagingException { if (targetInterface == null && targetService == null && targetUri == null) { throw new MessagingException("target's interface, service or uri should be specified"); } if (targetUri != null) { URIResolver.configureExchange(exchange, getContext(), targetUri); } if (targetInterface != null) { exchange.setInterfaceName(targetInterface); } if (targetOperation != null) { exchange.setOperation(targetOperation); } if (targetService != null) { exchange.setService(targetService); if (targetEndpoint != null) { ServiceEndpoint se = getContext().getEndpoint(targetService, targetEndpoint); exchange.setEndpoint(se); } } }
LOG.info("service for exchange " + serviceName); xchng.setInterfaceName(interfaceName);
LOG.info("service for exchange " + serviceName); xchng.setInterfaceName(interfaceName);
exchange.setInterfaceName(getPojoInterfaceName()); JBIDestination jbiDestination = jbiTransportFactory.getDestination(getPojoService().toString() + getPojoInterfaceName().toString());
me.setInterfaceName((QName) context.getService().getProperty(JBI_INTERFACE_NAME)); me.setOperation(context.getExchange().getOperation().getQName()); me.setService((QName) context.getService().getProperty(JBI_SERVICE_NAME));
concrete.setInterfaceName(fake.getInterfaceName());
concrete.getFault())); fake.setInterfaceName(concrete.getInterfaceName());