Examples of deliverSync()


Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

        throws Exception
    {
        final Message message = MessageFactory.getInstance().getMessage() ;
       
        final ServiceInvoker si = new ServiceInvoker("test", "jmsdeliver") ;
        final Message resp = si.deliverSync(message, 10) ;
       
        assertEquals("Response message", resp, responseMessage) ;
       
        assertNull("Call To EPR", message.getHeader().getCall().getTo()) ;
        assertNull("Call ReplyTo EPR", message.getHeader().getCall().getReplyTo()) ;
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

    {
        final Message message = MessageFactory.getInstance().getMessage() ;
        message.getHeader().getCall().setTo(failEPR) ;
       
        final ServiceInvoker si = new ServiceInvoker("test", "jmsdeliver") ;
        final Message resp = si.deliverSync(message, 10) ;
       
        assertEquals("Response message", resp, responseMessage) ;
       
        assertEquals("Call To EPR", failEPR, message.getHeader().getCall().getTo()) ;
        assertNull("Call ReplyTo EPR", message.getHeader().getCall().getReplyTo()) ;
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

        final Message message = MessageFactory.getInstance().getMessage() ;
        message.getHeader().getCall().setTo(failEPR) ;
        message.getHeader().getCall().setReplyTo(pickupEPR) ;
       
        final ServiceInvoker si = new ServiceInvoker("test", "jmsdeliver") ;
        final Message resp = si.deliverSync(message, 10) ;
       
        assertEquals("Response message", resp, responseMessage) ;
       
        assertEquals("Call To EPR", failEPR, message.getHeader().getCall().getTo()) ;
        assertEquals("Call ReplyTo EPR", pickupEPR, message.getHeader().getCall().getReplyTo()) ;
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

        }
        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
       
        try
        {
            serviceInvoker.deliverSync(message, 30000) ;
            fail("Expected fault message") ;
        }
        catch (final FaultMessageException fme)
        {
            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

       
        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
       
        try
        {
            serviceInvoker.deliverSync(message, 30000) ;
            fail("Expected fault message") ;
        }
        catch (final FaultMessageException fme)
        {
            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

            public void test() throws Exception {
                ServiceInvoker invoker = new ServiceInvoker("ServiceCat", "ServiceName");
                Message message = MessageFactory.getInstance().getMessage();

                message.getBody().add("Hi there!");
                Message response = invoker.deliverSync(message, 2000);

                assertTrue("Message equality", checkMessageEquality(message, MockAction.message));
                assertTrue("Message equality", checkMessageEquality(message, response));
            }
        }.setServiceConfig("in-listener-config-01.xml");
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

                Message message = MessageFactory.getInstance().getMessage();

                message.getBody().add("Hi there!");
                MockAction.exception = new ActionProcessingException("invm_sync_error");
                try {
                    invoker.deliverSync(message, 2000);
                    fail("Expected FaultMessageException.");
                } catch(FaultMessageException e) {
                    assertEquals("org.jboss.soa.esb.actions.ActionProcessingException: invm_sync_error", e.getMessage());
                }
            }
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

            public void test() throws Exception {
                ServiceInvoker invoker = new ServiceInvoker("ServiceCat", "ServiceName");
                Message message = MessageFactory.getInstance().getMessage();

                message.getBody().add("This message was passed by value!");
                invoker.deliverSync(message, 2000);

                assertTrue(message != MockAction.message);
                assertEquals("This message was passed by value!", MockAction.message.getBody().get());
            }
        }.setServiceConfig("in-listener-config-05.xml");
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

  {
    final Message message = MessageFactory.getInstance().getMessage() ;
    final ServiceInvoker invoker = new ServiceInvoker("missing", "service") ;
    try
    {
      invoker.deliverSync(message, 5000) ;
      fail("Expected MissingServiceException") ;
    }
    catch (final MissingServiceException mse) {} // expected
  }
View Full Code Here

Examples of org.jboss.soa.esb.client.ServiceInvoker.deliverSync()

    final Message message = MessageFactory.getInstance().getMessage() ;
    message.getHeader().getCall().setReplyTo(timeoutEPR) ;
    final ServiceInvoker invoker = new ServiceInvoker("timeout", "service") ;
    try
    {
      invoker.deliverSync(message, 5000) ;
      fail("Expected ResponseTimeoutException") ;
    }
    catch (final ResponseTimeoutException rte)
    {
      // expected
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.