Package org.jboss.soa.esb.addressing

Examples of org.jboss.soa.esb.addressing.EPR


     */
    public Message process(final Message message)
        throws ActionProcessingException
    {
        final Call call = message.getHeader().getCall() ;
        final EPR replyEPR = call.getReplyTo() ;
        final EPR toEPR = call.getTo() ;
       
        final String type = toEPR.getAddr().getExtensionValue(REPLY_TYPE) ;
       
        final String value ;
        final Message reply ;
        if (replyEPR == null)
        {
View Full Code Here


    {
        getServer().invoke(new ObjectName(JbpmServerMBean.OBJECT_NAME), "deployProcess", null, null) ;
       
        final Message message = MessageFactory.getInstance().getMessage() ;
        final Call call = message.getHeader().getCall() ;
        final EPR replyToEPR = new LogicalEPR("TestJBPMReplyESB", "Reply") ;
        replyToEPR.getAddr().addExtension(ReplyAction.REPLY_TYPE, "reply") ;
        call.setReplyTo(replyToEPR) ;
       
        final EPR faultToEPR = new LogicalEPR("TestJBPMReplyESB", "Reply") ;
        faultToEPR.getAddr().addExtension(ReplyAction.REPLY_TYPE, "fault") ;
        call.setFaultTo(faultToEPR) ;
       
        final ServiceInvoker si = new ServiceInvoker("TestJBPMReplyESB", "Create") ;
        si.deliverAsync(message) ;
       
View Full Code Here

    String configFile = getClass().getResource(fileName).getFile();
    ConfigTree tree = ConfigTree.fromInputStream(new FileInputStream(
        configFile));   
    ConfigTree eprElement = tree.getAllChildren()[0].getFirstChild("EPR");
   
    EPR toEPR = ListenerUtil.assembleEpr(eprElement);
   
    if (toEPR instanceof JMSEpr)
    {
      // good, just checking!
    }
View Full Code Here

    @BeforeClass
    public static void before() throws Exception {
        MockCourierFactory.install();
        MockRegistry.install();

        epr1 = new EPR(new URI("test1"));
        epr2 = new EPR(new URI("test2"));
        epr3 = new EPR(new URI("DLS"));
        courier1 = new MockCourier(true);
        courier2 = new MockCourier(true);
        courier3 = new MockCourier(true);

        MockRegistry.register("test", "java", epr1, courier1);
View Full Code Here

    @Before
    public void setUp() throws Exception {
        MockCourierFactory.install();
        MockRegistry.install();

        epr1 = new EPR(new URI("1"));
        epr2 = new EPR(new URI("2"));
        epr3 = new EPR(new URI("3"));
        epr4 = new EPR(new URI("4"));
        courier1 = new MockCourier(false);
        courier2 = new MockCourier(new CourierException(""));
        courier3 = new MockCourier(new MalformedEPRException(""));
        courier4 = new MockCourier(true);
View Full Code Here

  protected final void setUp() throws Exception
  {
    MockCourierFactory.install() ;
    MockRegistry.install() ;
    timeoutEPR = new EPR(new URI("timeout")) ;
    MockRegistry.register("timeout", "service", timeoutEPR, new MockCourier(true)) ;
    final PropertyManager propertyManager = ModulePropertyManager.getPropertyManager(ModulePropertyManager.CORE_MODULE) ;
    if (propertyManager != null)
    {
      redeliverDlsServiceOn = propertyManager.getProperty(Environment.REDELIVER_DLS_SERVICE_ON) ;
View Full Code Here

    }
    catch (MessageDeliverException ex)
    {
    }

    final EPR epr = new EPR(new URI(category + name));

    MockRegistry.register(category, name, epr, new MockCourier(true)) ;

    {
      ServiceInvoker invoker = new ServiceInvoker(category, name);
View Full Code Here

*/
public class ToMessageMapperUnitTest extends TestCase {

    public void testHeader() throws URISyntaxException, ObjectMappingException
    {
        EPR toEpr = new FileEpr("test1");
        Message message = MessageFactory.getInstance().getMessage();
       
        String expression="header.call.to";
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.setObjectOnMessage(message, expression, toEpr);
View Full Code Here

  public void test_not_all_same_01() {
    List<Message> attachmentMessages = createMessages(5);
    Message aggregatedMessage = MessageFactory.getInstance().getMessage();
   
    // Modify one of the replyTos...
    attachmentMessages.get(4).getHeader().getCall().setReplyTo(new EPR(URI.create("xproto://someother/address")));
   
    // Map... shouldn't map a replyTo because they're not all the same...
    Aggregator.mapCallDetails(attachmentMessages, aggregatedMessage, "blah");
   
    assertNull(aggregatedMessage.getHeader().getCall().getReplyTo());
View Full Code Here

    Message aggregatedMessage = MessageFactory.getInstance().getMessage();
   
    // Map... should map a replyTo because they are all the same...
    Aggregator.mapCallDetails(attachmentMessages, aggregatedMessage, "blah");
   
    assertEquals(new EPR(URI.create("xproto://some/address")), aggregatedMessage.getHeader().getCall().getReplyTo());
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.addressing.EPR

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.