Changeset 2202


Ignore:
Timestamp:
2001-03-20T13:55:58+12:00 (23 years ago)
Author:
paynter
Message:

More of the same.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/service/NzdlServiceClient.java

    r2200 r2202  
    6868  public NzdlServiceClient( String [] _args, Properties _props, String _IOR) {
    6969    corbaComErrorHolder error = NzdlCorbaFactory.createComErrorHolder();
     70
    7071    try {
    7172
     
    7677     
    7778      // basic setup
    78       if (!m_nzdlServer.initialise(error)) {
    79       throw new Error("Initialisation failed.");
     79      if (m_nzdlServer.initialise(error)) {
     80      } else {
     81      throw new Error("NzdlServiceClient initialisation unsuccessful.");
    8082      }
    8183     
    8284    } catch (Exception e) {
    83       System.err.println("Exception in service init: \n" + e) ;
     85      System.err.println("Exception in NzdlServiceClient initialisation: \n" + e) ;
    8486      System.err.println("corbaComError value: " + error.value.value());
    85       throw new Error("Initialisation failed.");
     87      System.err.println("NzdlServiceClient initialisation unsuccessful.");
     88      throw new Error("NzdlServiceClient initialisation unsuccessful.");
    8689    }
    8790    if (error.value.value() != corbaComError._corbaNoError) {
     
    8992    }
    9093   
    91     System.out.println("Service initialisation complete.");
     94    System.out.println("NzdlServiceClient initialisation successful.");
    9295  }
    9396
Note: See TracChangeset for help on using the changeset viewer.