Project

General

Profile

« Previous | Next » 

Revision 10377

Added by Jing Tao over 6 years ago

Removed the code to initialize the index task client at the constructor.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
127 127
  private CNodeService(HttpServletRequest request) {
128 128
    super(request);
129 129
    logMetacat = Logger.getLogger(CNodeService.class);
130
    try {
130
    /*try {
131 131
        getIndexTaskClient();
132 132
    } catch (Exception e) {
133 133
        logMetacat.warn("CNodeService.constructorr - the client for sumbitting the index tasks couldn't be initialized since "+e.getMessage(), e);
134
    } 
134
    }*/ 
135 135
  }
136 136
  
137 137
  /*
......
140 140
  private void getIndexTaskClient() throws InstantiationException, IllegalAccessException, ClassNotFoundException {
141 141
      if(indexTaskClient == null) {
142 142
          indexTaskClient = IndexTaskMessagingClientFactory.getClient();
143
          //System.out.println("generating the client .......................");
143 144
      }
144 145
  }
145 146
  

Also available in: Unified diff