Package org.jboss.soa.esb.actions

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


    message.getBody().add(content + " " + new java.util.Date());
    return message;
}
  
   public Message causesException(Message message) throws ActionProcessingException {
       throw new ActionProcessingException("BAD STUFF HAPPENED");
   }
View Full Code Here


        String contents = (String) msgBody.get();

        // Reset the message body contents with the response...
        msgBody.add(("Hello From ESB MyAction: " + contents));

        throw new ActionProcessingException("Break!!!!");

        //return message;
    }
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

  {
        Object oCurr = null;
        try {
            oCurr = payloadProxy.getPayload(message);
        } catch (MessageDeliverException e) {
            throw new ActionProcessingException(e);
        }

        if (!(oCurr instanceof Long))
    {
      throw new ActionProcessingException(
          "This action handler only accepts Long object instances.");
    }
    log.debug("LongToDateConverter");

        try {
            payloadProxy.setPayload(message, new Date((Long)oCurr));
            }
        catch (Exception e)
        { throw new ActionProcessingException(e); }
        return message;
  }
View Full Code Here

        anotherId = MockActionInfo.getNextId() ;
    }
   
    public Message process(Message message) throws ActionProcessingException
    {
        throw new ActionProcessingException("foo");
    }
View Full Code Here

        throw new ActionProcessingException("foo");
    }
   
    public Message anotherProcess(Message message) throws ActionProcessingException
    {
      throw new ActionProcessingException("foo");
    }
View Full Code Here

        Object oCurr = null;

        try {
            oCurr = payloadProxy.getPayload(message);
        } catch (MessageDeliverException e) {
            throw new ActionProcessingException(e);
        }

        if(!(oCurr instanceof String)) {
            throw new ActionProcessingException("This action handler only accepts String object instances.");
        }
       
        try {
            payloadProxy.setPayload(message, new Long((String)oCurr));
        } catch (NumberFormatException e) {
            throw new ActionProcessingException("'" + oCurr + "' is not a valid long value.");
        } catch (MessageDeliverException e) {
            throw new ActionProcessingException(e);
        }

        return message;
    }
View Full Code Here

    server.setAttribute(on, attribute);
    System.out.println((String)message.getBody().get());
      }
      catch (final MalformedObjectNameException mone)
      {
          throw new ActionProcessingException("Error creating MBean proxy", mone) ;
      } catch (InstanceNotFoundException infe)
      {
    throw new ActionProcessingException("Instance not found", infe);
      } catch (AttributeNotFoundException anfe)
      {
    throw new ActionProcessingException("Message attribute not found", anfe);
      } catch (Exception e) {
         throw new ActionProcessingException("Exception caught", e);
      }
      return message;
   }
View Full Code Here

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

        {
            return (RedeliveryMBean) MBeanProxyExt.create(RedeliveryMBean.class, RedeliveryMBean.objectName, server);
        }
        catch (final MalformedObjectNameException mone)
        {
            throw new ActionProcessingException("Error retrieving MBean", mone) ;
        }
    }
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.