public MessageExchangeFactory createExchangeFactory() { return channel.createExchangeFactory(); }
public MessageExchangeFactory createExchangeFactory() { return delegate.createExchangeFactory(); }
public MessageExchangeFactory createExchangeFactory(QName interfaceName) { return delegate.createExchangeFactory(interfaceName); }
public MessageExchangeFactory createExchangeFactory(QName interfaceName) { return channel.createExchangeFactory(interfaceName); }
public MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint) { return channel.createExchangeFactory(endpoint); }
public MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint) { return delegate.createExchangeFactory(endpoint); }
/** * Provide access to the default message exchange exchangeFactory, lazily creating one. */ public MessageExchangeFactory getExchangeFactory() throws MessagingException { if (exchangeFactory == null && context != null) { exchangeFactory = getDeliveryChannel().createExchangeFactory(); } return exchangeFactory; }
/** * Provide access to the default message exchange exchangeFactory, lazily creating one. */ public MessageExchangeFactory getExchangeFactory() throws MessagingException { if (exchangeFactory == null && context != null) { exchangeFactory = getDeliveryChannel().createExchangeFactory(); } return exchangeFactory; }
/** * Provide access to the default message exchange exchangeFactory, lazily creating one. */ public MessageExchangeFactory getExchangeFactory() throws MessagingException { if (exchangeFactory == null && context != null) { exchangeFactory = getDeliveryChannel().createExchangeFactory(); } return exchangeFactory; }
public MessageExchangeFactory createExchangeFactory() { return getChannel().createExchangeFactory(); }
public MessageExchangeFactory createExchangeFactory(ServiceEndpoint serviceEndpoint) { return getChannel().createExchangeFactory(serviceEndpoint); }
/** * Create a message exchange factory. This factory will create exchange * instances with all appropriate properties set to <code>null</code>. * * @return a message exchange factory; must be non-null * @throws RemoteException * impossible to realize a remote access */ public RemoteMessageExchangeFactory createExchangeFactory() throws RemoteException { // create the concrete MessageExchangeFactory MessageExchangeFactory mef = this.deliveryChannel.createExchangeFactory(); // Return the fake Message Exchange Factory return new RemoteMessageExchangeFactoryImpl(this.messages, mef); }
public MessageExchangeFactory createExchangeFactory(QName qName) { return getChannel().createExchangeFactory(qName); }
/** * Create a message exchange factory for the given service name. * * @param serviceName * name of the service for which all exchanges created by the * returned factory will be set for; may be null * @return an exchange factory that will create exchanges for the the given * service; must be non-null * @throws RemoteException * impossible to realize a remote access */ public RemoteMessageExchangeFactory createExchangeFactoryForService( final QName serviceName) throws RemoteException { // create the concrete MessageExchangeFactory MessageExchangeFactory mef = this.deliveryChannel. createExchangeFactory(serviceName); // Return the fake Message Exchange Factory return new RemoteMessageExchangeFactoryImpl(this.messages, mef); }
/** * Create a message exchange factory for the given interface name. * * @param interfaceName * name of the interface for which all exchanges created by the * returned factory will be set for; may be null * @return an exchange factory that will create exchanges for the the given * interface; must be non-null * @throws RemoteException * impossible to realize a remote access */ public RemoteMessageExchangeFactory createExchangeFactory(final QName interfaceName) throws RemoteException { // create the concrete MessageExchangeFactory MessageExchangeFactory mef = this.deliveryChannel. createExchangeFactory(interfaceName); // Return the fake Message Exchange Factory return new RemoteMessageExchangeFactoryImpl(this.messages, mef); }
public synchronized void activate() throws Exception { context = new EndpointComponentContext(this); channel = context.getDeliveryChannel(); exchangeFactory = channel.createExchangeFactory(); }
public MessageExchange createExchange(HttpServletRequest request, ComponentContext context) throws Exception { MessageExchange me = context.getDeliveryChannel().createExchangeFactory().createExchange(getDefaultMep()); NormalizedMessage in = me.createMessage(); in.setContent(new StreamSource(getRequestEncodingStream(request.getHeader(HttpHeaders.CONTENT_ENCODING), request.getInputStream()))); me.setMessage(in, "in"); return me; }
public MessageExchange createExchange(HttpServletRequest request, ComponentContext context) throws Exception { MessageExchange me = context.getDeliveryChannel().createExchangeFactory().createExchange(getDefaultMep()); NormalizedMessage in = me.createMessage(); in.setContent(marshal(request.getInputStream())); me.setMessage(in, "in"); return me; }
public JBIClient(ComponentContext componentContext) { this.componentContext = componentContext; // TODO : initialize somewhere else try { this.messageExchangeFactory = this.componentContext.getDeliveryChannel() .createExchangeFactory(); } catch (MessagingException e) { e.printStackTrace(); } try { this.logger = this.componentContext.getLogger("", null); } catch (MissingResourceException e) { e.printStackTrace(); } catch (JBIException e) { e.printStackTrace(); } }
public MessageExchange createExchange(JmsContext jmsContext, ComponentContext jbiContext) throws Exception { Context ctx = (Context) jmsContext; MessageExchange exchange = jbiContext.getDeliveryChannel().createExchangeFactory().createExchange(mep); NormalizedMessage inMessage = exchange.createMessage(); populateMessage(ctx.message, inMessage); if (isCopyProperties()) { copyPropertiesFromJMS(ctx.message, inMessage); } exchange.setMessage(inMessage, "in"); return exchange; }