Examples of ServiceInvoker


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

     *
     * @throws ManagedLifecycleException for errors while initialisation.
     */
    protected void doInitialise() throws ManagedLifecycleException {
        try {
            serviceInvoker = new ServiceInvoker(targetService);
        } catch (MessageDeliverException e) {
            throw new ManagedLifecycleException(e);
        }
    }
View Full Code Here

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

        ServiceInvoker dlQueueInvoker;

        @SuppressWarnings("unchecked")
        public void run() {
            try {
                dlQueueInvoker = new ServiceInvoker(INTERNAL_SERVICE_CATEGORY, DEAD_LETTER_SERVICE_NAME);
            } catch (MessageDeliverException e) {
                logger.error("Unable to initialise Dead Letter Channel Service Invoker for Aggregation timeout checker. Not using Dead Letter Channel.", e);
            }

            boolean running = true ;
View Full Code Here

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

    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

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

        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

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

    }

    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

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

          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

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

    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

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

   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

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

        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

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

  }
 
  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
TOP
Copyright © 2018 www.massapi.com. 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.