Package org.jboss.soa.esb.actions

Examples of org.jboss.soa.esb.actions.ActionProcessingException


    public Message process(Message message) throws ActionProcessingException {

        if(message.getHeader().getCall().getFaultTo() != null) {
            message.getBody().add("Fault-To Service3");
            throw new ActionProcessingException("Service2Action fault");
        } else {
            message.getBody().add("Reply-To Service3");
        }

        return message;
View Full Code Here


        {
            return (RedeliveryMBean) MBeanProxyExt.create(RedeliveryMBean.class, RedeliveryMBean.objectName, server);
        }
        catch (final MalformedObjectNameException mone)
        {
            throw new ActionProcessingException("Error creating MBean proxy", mone) ;
        }
    }
View Full Code Here

        {
            ebwsServer = (EBWSServerMBean) MBeanProxyExt.create(EBWSServerMBean.class, EBWSServerMBean.OBJECT_NAME, server);
        }
        catch (final MalformedObjectNameException mone)
        {
            throw new ActionProcessingException("Error creating MBean proxy", mone) ;
        }
       
        final Body body = message.getBody() ;
        final Object messageRequest ;
        if (requestLocation != null)
View Full Code Here

      {
          storage = (EPRStorageMBean)MBeanProxyExt.create(EPRStorageMBean.class, EPRStorageMBean.objectName, server);
      }
      catch (final MalformedObjectNameException mone)
      {
          throw new ActionProcessingException("Error creating MBean proxy", mone) ;
      }
      return message;
   }
View Full Code Here

        }

        try {
            invoker.deliverAsync(message);
        } catch (MessageDeliverException e) {
            throw new ActionProcessingException(e);
        }

        return message;
    }
View Full Code Here

        message = MessageFactory.getInstance().getMessage();
        message.getHeader().getCall().setReplyTo(new LogicalEPR("cat", "servicex"));
        message.getHeader().getCall().setFaultTo(new LogicalEPR("cat", "servicey"));
        assertTrue(!courier1.deliveryAttempted);
        assertTrue(!courier2.deliveryAttempted);
        MockAction.exception = new ActionProcessingException("blah");
        pipeline.process(message);
        assertTrue(!courier1.deliveryAttempted);
        assertTrue(courier2.deliveryAttempted);
    }
View Full Code Here

   
    @Process
    public void process(Message m) throws ActionProcessingException {
      processCalled = true;
      if(throwProcessException) {
        throw new ActionProcessingException("process exception");
      }     
    }   
View Full Code Here

   
    @Override
    public Message process(Message message) throws ActionProcessingException
    {
        super.process(message) ;
        throw new ActionProcessingException("This is a deliberate failure") ;
    }
View Full Code Here

   
    @Override
    public Message process(Message message) throws ActionProcessingException
    {
        super.process(message) ;
        throw new ActionProcessingException("This is a deliberate failure") ;
    }
View Full Code Here

    public Message process(final Message message) throws ActionProcessingException {
        MockAction.message = message;

        if(exception != null) {
            ActionProcessingException e = exception;
            exception = null;
            throw e;
        }

        return message;
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.ActionProcessingException

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.