Examples of UDDIClerkManager


Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

 
  public UDDISubscriptionPortType getUDDISubscriptionService(String endpointURL) throws TransportException {
    if (subscriptionService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionUrl();
        }
        Class<?> c = Class.forName(endpointURL);
        subscriptionService = (UDDISubscriptionPortType) c.newInstance();
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

 
  public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(String endpointURL) throws TransportException {
    if (subscriptionListenerService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionListenerUrl();
        }
        Class<?> c = Class.forName(endpointURL);
        subscriptionListenerService = (UDDISubscriptionListenerPortType) c.newInstance();
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

 
  public UDDICustodyTransferPortType getUDDICustodyTransferService(String endpointURL) throws TransportException {
    if (custodyTransferService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getCustodyTransferUrl();
        }
        Class<?> c = Class.forName(endpointURL);
        custodyTransferService = (UDDICustodyTransferPortType) c.newInstance();
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

 
  public JUDDIApiPortType getJUDDIApiService(String endpointURL) throws TransportException {
    if (publisherService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getJuddiApiUrl();
        }
        Class<?> c = Class.forName(endpointURL);
        publisherService = (JUDDIApiPortType) c.newInstance();
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

public class UDDIClerkManagerTest {
 
     @Test
     public void testReadingTheConfig() {
       try {
         UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
         manager.start();
         manager.getClientConfig().getUDDINode("default");
         assertEquals(2,manager.getClientConfig().getUDDIClerks().size());
         Thread.sleep(500);
         manager.stop();
       } catch (Exception e) {
         //we should not have any issues reading the config
           e.printStackTrace();
           Assert.fail();
       }
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

     }
    
     @Test
     public void testMultipleClientConfigFiles() {
       try {
         UDDIClerkManager manager = new UDDIClerkManager("META-INF/uddi.xml");
         manager.start();
       assertEquals("test-manager", manager.getName());
      
         UDDIClerkManager manager2 = new UDDIClerkManager("META-INF/uddi2.xml");
         manager2.start();
       assertEquals("second-manager", manager2.getName());
       Thread.sleep(500);
       manager.stop();
       manager2.stop();
      
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      Assert.fail("No exceptions are expected");
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

     }
    
     @Test
     public void testDefaultConfigFile() {
       try {
         UDDIClerkManager manager = new UDDIClerkManager(null);
         //We're expecting the manager defined in the META-INF/uddi.xml file.
         manager.start();
       assertEquals("test-manager", manager.getName());
       Thread.sleep(500);
       manager.stop();
      
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      Assert.fail("No exceptions are expected");
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

     public void testDefaultManager() {
       try {   
         //This is a special case where the manager in the META-INF/uddi.xml file is
         //instantiated and started simply by getting it.
         //This functionality was add for backwards compatibility.
         UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
         manager.start();
       assertEquals("test-manager", manager.getName());
       assertEquals("default", manager.getClientConfig().getHomeNode().getName());
       Thread.sleep(500);
       manager.stop();
      
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      Assert.fail("No exceptions are expected");
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

     }
    
     @Test
     public void testReadingAnnotations() {
       try {
         UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
         Map<String,UDDIClerk> clerks = manager.getClientConfig().getUDDIClerks();
        AnnotationProcessor ap = new AnnotationProcessor();
        if (clerks.containsKey("default")) {
          UDDIClerk clerk = clerks.get("default");
          BusinessService service = ap.readServiceAnnotations(
              HelloWorldMockup.class.getName(), clerk.getUDDINode().getProperties());
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerkManager

         } finally {
             xmlPropertyIS.close() ;
         }

         System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
         manager = new UDDIClerkManager(uddiClientResourceFile.getAbsolutePath());
         // addClerkManager must precede manager.start() to avoid a race in jUDDI, do not change this order.
         UDDIClientContainer.addClerkManager(manager) ;
         manager.start();
   this.managerName = this.manager.getName();
         System.setProperty("org.apache.juddi.v3.client.manager.name", this.manager.getName());
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.