Package org.apache.juddi.v3.client.embed

Examples of org.apache.juddi.v3.client.embed.EmbeddedRegistry.start()


                try {
                        //This is a special case where the client in the META-INF/uddi.xml file is
                        //instantiated and started simply by getting it.
                        //This functionality was add for backwards compatibility.
                        UDDIClient client = new UDDIClient();
                        client.start();
                        assertEquals("test-client", client.getName());
                        assertEquals("default", client.getClientConfig().getHomeNode().getName());
                        Thread.sleep(500);
                        client.stop();
View Full Code Here


                try {
                        //This is a special case where the client in the META-INF/uddi.xml file is
                        //instantiated and started simply by getting it.
                        //This functionality was add for backwards compatibility.
                        UDDIClient client = new UDDIClient();
                        client.start();
                        assertEquals("test-client", client.getName());
                        assertEquals("default", client.getClientConfig().getHomeNode().getName());
                        Transport transport = client.getTransport("default");
                        Assert.assertNotNull(transport);
                        Assert.assertNotNull(transport.getJUDDIApiService());
View Full Code Here

         * @throws Exception
         */
        @Test
        public void getVersion2Clients() throws Exception {
                UDDIClient client = new UDDIClient("META-INF/uddiv2.xml");
                client.start();
                Transport transport = client.getTransport("default");
                Assert.assertNotNull(transport);
                Assert.assertEquals(transport.getClass().getCanonicalName(), JAXWSv2TranslationTransport.class.getCanonicalName());
                Assert.assertNotNull(transport.getUDDIInquiryService());
                Assert.assertNotNull(transport.getUDDIPublishService());
View Full Code Here

                this.mappingsfile = mappingsfile;
                this.credFile = credFile;
                this.preserveOwnership = preserveOwnership;

                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
View Full Code Here

                this.mappingsfile = mappingsfile;

                // create a manager and read the config in the archive;
                // you can use your config file name
                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
View Full Code Here

    @Test
    public void Test1_NoAutoRegister() throws Exception {
        log.info("Test1_NoAutoRegister");

        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        Assert.assertNotNull(start);
View Full Code Here

    @Test
    public void Test2_NoAutoRegisterAndShortCircuitReceive() throws Exception {
        log.info("Test2_NoAutoRegisterAndShortCircuitReceive");
        Test2_NoAutoRegisterAndShortCircuitReceive_ = false;
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        Assert.assertNotNull(start);
View Full Code Here

    @Test(expected = ServiceAlreadyStartedException.class)
    public void Test3_StartWhenAlreadyStarted() throws Exception {
        log.info("Test3_StartWhenAlreadyStarted");
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        try {
View Full Code Here

    public void Test4_NotifyEndpointStopped() throws Exception {
        log.info("Test4_NotifyEndpointStopped");
        //reset
        Test4_NotifyEndpointStopped_ = false;
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");

        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        SubscriptionCallbackListener.registerCallback(this);
View Full Code Here

    try {
      String embeddedServerClass = getClientConfig().getHomeNode().getProperties().getProperty("embeddedServer","org.apache.juddi.v3.client.embed.JUDDIRegistry");
      Class<?> clazz =  ClassUtil.forName(embeddedServerClass, this.getClass());
      EmbeddedRegistry embeddedRegistry = (EmbeddedRegistry) clazz.newInstance();
      embeddedRegistry.start();
    } catch (Exception e) {
      throw new ConfigurationException(e.getMessage(),e);
    }
  }
 
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.