Examples of deliverSync()


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

    message.getHeader().getCall().setReplyTo(timeoutEPR) ;
    message.getProperties().setProperty(Environment.EXCEPTION_ON_DELIVERY_FAILURE, "true") ;
    final ServiceInvoker invoker = new ServiceInvoker("timeout", "service") ;
    try
    {
      invoker.deliverSync(message, 5000) ;
      fail("Expected ResponseTimeoutException") ;
    }
    catch (final ResponseTimeoutException rte)
    {
      // expected
View Full Code Here

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

            for (URI key : messageMap.keySet()) {
                ms.removeMessage(key, MessageStore.CLASSIFICATION_DLQ);
            }
            Service noneExistingService = new Service("none-exising-category", "none-existing-service-name");
            ServiceInvoker si = new ServiceInvoker(noneExistingService);
            si.deliverSync(message, 1000);
        } catch (MessageStoreException mse) {
            throw new ActionProcessingException(mse.getMessage(), mse);
        } catch (MessageDeliverException mde) {
            //Adding this control code to show where the message now is.
            //We should get here on and we should have a message in the DLQ.
View Full Code Here

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

                request.getBody().add("Hello");

                ResponseAction.responseMessage = MessageFactory.getInstance().getMessage();
                ResponseAction.responseMessage.getBody().add("Goodbye");

                Message response = invoker.deliverSync(request, 10000);
                assertEquals("Goodbye", response.getBody().get());
            }
        }.setServiceConfig("sync-invoker-config-01.xml");

        testRunner.run();
View Full Code Here

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

                request.getBody().add("Hello");

                ResponseAction.exception = new ActionProcessingException("Exception!!");

                try {
                    invoker.deliverSync(request, 10000);
                    fail("Expected FaultMessageException");
                } catch(FaultMessageException e) {
                    assertEquals("Error delivering message to service 'Services:ServiceB'", e.getCause().getMessage());
                }
            }
View Full Code Here

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

                request.getBody().add("Hello");

                ResponseAction.exception = new ActionProcessingException("Exception!!");

                invoker.deliverSync(request, 10000);
            }
        }.setServiceConfig("sync-invoker-config-02.xml");

        testRunner.run();
    }
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.