Examples of registerEPR()


Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

        InVMRegistryInterceptor reg = new InVMRegistryInterceptor();
        try
        {
            reg.setRegistry(new MockRegistry()) ;
   
            reg.registerEPR("x", "y", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
   
            EPR eprFromReg = reg.findEPR("x", "y");
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("x", "y").size()) ;
   
            // Register the EPR again...
View Full Code Here

Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

   
            EPR eprFromReg = reg.findEPR("x", "y");
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("x", "y").size()) ;
   
            // Register the EPR again...
            reg.registerEPR("x", "y", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
            Assert.assertEquals("InVM EPR count", 2, InVMTransport.getInstance().findEPRs("x", "y").size()) ;
   
            // Unregister it once...
            reg.unRegisterEPR("x", "y", new InVMEpr(new EPR(URI.create("x://123"))));
   
View Full Code Here

Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

        InVMRegistryInterceptor reg = new InVMRegistryInterceptor();
        try
        {
            reg.setRegistry(new MockRegistry()) ;
   
            reg.registerEPR("xy", "z", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
            try {
                reg.registerEPR("x", "yz", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
                Assert.fail("Expected RegistryException");
            } catch (RegistryException e) {} // expected
        }
View Full Code Here

Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

        {
            reg.setRegistry(new MockRegistry()) ;
   
            reg.registerEPR("xy", "z", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
            try {
                reg.registerEPR("x", "yz", "blah", new InVMEpr(new EPR(URI.create("x://123"))), "blah");
                Assert.fail("Expected RegistryException");
            } catch (RegistryException e) {} // expected
        }
        finally
        {
View Full Code Here

Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

            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"));
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("xy", "z").size()) ;
            Assert.assertEquals("InVM EPR count", 0, InVMTransport.getInstance().findEPRs("x", "yz").size()) ;
   
            // Register "x:yz"...
View Full Code Here

Examples of org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.registerEPR()

            Assert.assertEquals(xy_z, reg.findEPR("xy", "z"));
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("xy", "z").size()) ;
            Assert.assertEquals("InVM EPR count", 0, InVMTransport.getInstance().findEPRs("x", "yz").size()) ;
   
            // Register "x:yz"...
            reg.registerEPR("x", "yz", "blah", x_yz, "blah");
            Assert.assertEquals(x_yz, reg.findEPR("x", "yz"));
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("xy", "z").size()) ;
            Assert.assertEquals("InVM EPR count", 1, InVMTransport.getInstance().findEPRs("x", "yz").size()) ;
   
            // Unregister "xy:z"...
View Full Code Here

Examples of org.jboss.soa.esb.services.registry.Registry.registerEPR()

            try
            {
              if ("true".equalsIgnoreCase(removeOldService))             
                registry.unRegisterService(category, name);
             
                registry.registerEPR(category, name,
                    serviceDescription, epr, eprDescription) ;
            }
            catch (ServiceNotFoundException ex)
            {
              // ignore as it's possible another client just did the removal for us.
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.