String uri2 = uri.substring(8); String[] parts = URIResolver.split2(uri2); exchange.setService(new QName(parts[0], parts[1])); } else if (uri.startsWith("endpoint:")) { String uri2 = uri.substring(9);
String[] parts = URIResolver.split3(toAddress); MessageExchange exchange = message.getContent(MessageExchange.class); exchange.setService(new QName(parts[0], parts[1]));
String uri2 = uri.substring(8); String[] parts = URIResolver.split2(uri2); exchange.setService(new QName(parts[0], parts[1])); } else if (uri.startsWith("endpoint:")) { String uri2 = uri.substring(9);
String uri2 = uri.substring(8); String[] parts = URIResolver.split2(uri2); exchange.setService(new QName(parts[0], parts[1])); } else if (uri.startsWith("endpoint:")) { String uri2 = uri.substring(9);
exchange = createExchange(opURI); exchange.setService(serviceName); exchange.setOperation(operationName);
/** * 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, 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) 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("setup message contents on " + inMsg); inMsg.setContent(getMessageContent(message)); xchng.setService(serviceName); LOG.info("service for exchange " + serviceName);
LOG.info("setup message contents on " + inMsg); inMsg.setContent(getMessageContent(message)); xchng.setService(serviceName); LOG.info("service for exchange " + serviceName);
jbiMex = mexf.createExchange(isTwoWay ? MessageExchangePattern.IN_OUT : MessageExchangePattern.IN_ONLY); jbiMex.setEndpoint(se); jbiMex.setService(se.getServiceName()); jbiMex.setOperation(opname);
.getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID); exchange.setService(getPojoService()); exchange.setInterfaceName(getPojoInterfaceName()); JBIDestination jbiDestination = jbiTransportFactory.getDestination(getPojoService().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)); me.setEndpoint((ServiceEndpoint) context.getService().getProperty(JBI_ENDPOINT)); NormalizedMessage msg = me.createMessage();
concrete.setService(fake.getService());
fake.setService(concrete.getService()); fake.setStatus(concrete.getStatus()); ((org.objectweb.petals.tools.rmi.common.serializable.