Package org.jboss.soa.esb.addressing.eprs

Examples of org.jboss.soa.esb.addressing.eprs.InVMEpr


    @Test
    public void test_JBESB_2108_03() throws ServiceNotFoundException, RegistryException {
        InVMRegistryInterceptor reg = new InVMRegistryInterceptor();
        try
        {
            EPR xy_z = new InVMEpr(new EPR(URI.create("x://123")));
            EPR x_yz = new InVMEpr(new EPR(URI.create("x://1234")));
            reg.setRegistry(new MockRegistry()) ;
   
            // Register "xy:z"...
            reg.registerEPR("xy", "z", "blah", xy_z, "blah");
            Assert.assertEquals(xy_z, reg.findEPR("xy", "z"));
View Full Code Here


        }
    }

    @Test
    public void testTemporaryUnthreadedDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid1"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }

    @Test
    public void testTemporaryThreadedDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid2"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }

    @Test
    public void testTemporaryDelayedThreadedDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid3"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }

    @Test
    public void testTemporaryThreadedNullDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid4"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
       
        InVMCourier courier = new InVMCourier(epr);
        Consumer consumer = new Consumer(courier);
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }

    @Test
    public void testTemporaryLockstepDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid5?true#2000"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }
   
    @Test
    public void testTemporaryPassByValueDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid5/true?true#2000"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);
View Full Code Here

    JAXRRegistryImpl registry = new JAXRRegistryImpl();
    Service s1 = registry.registerService(TEST_SERVICE_CATEGORY, TEST_SERVICE_NAME, TEST_SERVICE_DESC);
    Service s2 = registry.registerService(TEST_SERVICE_CATEGORY, TEST_SERVICE_NAME, TEST_SERVICE_DESC)
   
    // Attach EPRs
    InVMEpr epr1 = new InVMEpr(new URI("invm://service1epr1"));
    InVMEpr epr2 = new InVMEpr(new URI("invm://service1epr2"));
    registerEPR(registry, s1, epr1, "epr1");
    registerEPR(registry, s1, epr2, "epr2");

    InVMEpr epr3 = new InVMEpr(new URI("invm://service2epr1"));
    InVMEpr epr4 = new InVMEpr(new URI("invm://service2epr2"));
    registerEPR(registry, s2, epr3, "epr3");
    registerEPR(registry, s2, epr4, "epr4");   
  }
View Full Code Here

        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
    }

    @Test
    public void testTemporaryLockstepMultiProducerPerformance() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid5?true#2000"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        int iters = 1000;
        int numberOfProducers = 50;
        Producer[] producer = new Producer[numberOfProducers];
View Full Code Here

    JAXRRegistryImpl registry = new JAXRRegistryImpl();
    Service s1 = registry.registerService(TEST_SERVICE_CATEGORY, TEST_SERVICE_NAME+"2", TEST_SERVICE_DESC);
    Service s2 = registry.registerService(TEST_SERVICE_CATEGORY, TEST_SERVICE_NAME+"2", TEST_SERVICE_DESC)
   
    // Attach EPRs
    InVMEpr epr1 = new InVMEpr(new URI("invm://service1epr1"));
    InVMEpr epr2 = new InVMEpr(new URI("invm://service1epr2"));
    registerEPR(registry, s1, epr1, "epr1");
    registerEPR(registry, s1, epr2, "epr2");

    InVMEpr epr3 = new InVMEpr(new URI("invm://service1epr1"));
    InVMEpr epr4 = new InVMEpr(new URI("invm://service1epr2"));
    registerEPR(registry, s2, epr3, "epr1");
    registerEPR(registry, s2, epr4, "epr2");   
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.addressing.eprs.InVMEpr

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.