Package org.jboss.soa.esb.client

Examples of org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker


    properties.setProperty(ActionProcessingConstants.PROPERTY_FAILURE_CALL_DETAILS, callDetails.toString()) ;
    properties.setProperty(ActionProcessingConstants.PROPERTY_FAILURE_RESPONSE_TYPE, messageType.name()) ;

    try
    {
      final ServiceInvoker serviceInvoker = new ServiceInvoker(ServiceInvoker.dlqService) ;

      serviceInvoker.deliverAsync(message) ;
    }
    catch (final MessageDeliverException mde)
    {
      LOGGER.warn("Failed to send response failure to DLQ service") ;
      LOGGER.debug("Failed to send response failure to DLQ service", mde) ;
View Full Code Here


        super.doInitialise();
        bean.setInflowMessageProcessor(this);
       
        try
        {
            serviceInvoker = new ServiceInvoker(targetServiceCategory, targetServiceName) ;
        }
        catch (final MessageDeliverException mde)
        {
            throw new ManagedLifecycleException("Unexpected exception creating service invoker", mde) ;
        }
View Full Code Here

    }

    private void messageTo(EPR epr, Message message, MessageType messageType) {
        if(epr instanceof LogicalEPR) {
            try {
                ServiceInvoker invoker = ((LogicalEPR)epr).getServiceInvoker();
                invoker.deliverAsync(message);
            } catch (MessageDeliverException e) {
                LOGGER.error("Failed to send " + messageType + " to address " + epr
                        + " for message "+message.getHeader(), e);
            }
        } else {
View Full Code Here

          m_targetServiceName);
      if (null == _targetEprs || _targetEprs.size() < 1)
        throw new ManagedLifecycleException("EPR <"
            + m_targetServiceName + "> not found in registry");
     
      m_serviceInvoker = new ServiceInvoker(m_targetServiceCategory, m_targetServiceName);
        } catch (ServiceNotFoundException snfe) {
          throw new ManagedLifecycleException("EPR <" + m_targetServiceName + " "
              + m_targetServiceName + "> not found in registry");
        } catch (final RegistryException re) {
          throw new ManagedLifecycleException("Unexpected registry exception", re);
View Full Code Here

    public SyncServiceInvoker(ConfigTree configTree) throws ConfigurationException, MessageDeliverException {
        String serviceCat = configTree.getRequiredAttribute(ListenerTagNames.SERVICE_CATEGORY_NAME_TAG);
        String serviceName = configTree.getRequiredAttribute(ListenerTagNames.SERVICE_NAME_TAG);

        serviceInvoker = new ServiceInvoker(serviceCat, serviceName);
        timeout = configTree.getLongAttribute(ListenerTagNames.SERVICE_INVOKER_TIMEOUT, 30000L);
        failOnException = configTree.getBooleanAttribute(ListenerTagNames.FAIL_ON_EXCEPTION, true);
        suspendTransaction = configTree.getBooleanAttribute(ListenerTagNames.SUSPEND_TRANSACTION, false);
    }
View Full Code Here

   protected void doInitialise() throws ManagedLifecycleException
   {
      super.doInitialise();
      try
      {
         final ServiceInvoker invoker = new ServiceInvoker(serviceCategory, serviceName);
         bean.setServiceInvoker(invoker);
      }
      catch (final MessageDeliverException mde)
      {
         throw new ManagedLifecycleException("Failed to activate JCA Inflow Gateway. Service '" + serviceCategory + ":" + serviceName + "'", mde) ;
View Full Code Here

        catch (final RegistryException re) {
          throw new ManagedLifecycleException("Unexpected registry exception", re);
        }
       
        try {
          _serviceInvoker = new ServiceInvoker(_targetServiceCategory, _targetServiceName);
          _serviceInvoker.loadServiceClusterInfo();
        } catch (MessageDeliverException mde) {
          throw new ManagedLifecycleException(mde);       
        }
View Full Code Here

  }
 
  public void process(Exchange exchange) throws Exception {
    org.apache.camel.Message camelMessageIn = exchange.getIn();
    Message esbMessageIn = getComposer().compose(camelMessageIn);
    ServiceInvoker invoker = new ServiceInvoker(service);
    if (async) {
      invoker.deliverAsync(esbMessageIn);
    }
    else {
      Message esbMessageOut = invoker.deliverSync(esbMessageIn, timeout);
      org.apache.camel.Message camelMessageOut = getComposer().decompose(esbMessageOut, camelMessageIn);
      exchange.setOut(camelMessageOut);
    }
  }
View Full Code Here

     * gateway.
     */
    @Override
    protected void doInitialise() throws ManagedLifecycleException
    {
        final ServiceInvoker serviceInvoker = createServiceInvoker(serviceCategory, serviceName);
        messageHandler.setServiceInvoker(serviceInvoker);
       
        datagramAcceptor = new DatagramAcceptor();
        ((DatagramSessionConfig) datagramAcceptor.getDefaultConfig().getSessionConfig()).setReuseAddress(true);
       
View Full Code Here

     */
    private ServiceInvoker createServiceInvoker(final String serviceCategory, final String serviceName) throws ManagedLifecycleException
    {
        try
        {
            return new ServiceInvoker(serviceCategory, serviceName);
        }
        catch (MessageDeliverException e)
        {
            throw new ManagedLifecycleException(e.getMessage(), e);
        }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.