Project

General

Profile

« Previous | Next » 

Revision 6499

Added by Matt Jones over 13 years ago

Modify to set the CN URL before getting a CN instance.

View differences:

src/edu/ucsb/nceas/metacat/admin/PropertiesAdmin.java
36 36
import org.dataone.client.CNode;
37 37
import org.dataone.client.D1Client;
38 38
import org.dataone.client.auth.CertificateManager;
39
import org.dataone.configuration.Settings;
39 40
import org.dataone.service.exceptions.IdentifierNotUnique;
40 41
import org.dataone.service.exceptions.InvalidRequest;
41 42
import org.dataone.service.exceptions.NotAuthorized;
......
365 366
            }
366 367
            String mnCertificatePath = certificatePath + node.getIdentifier().getValue() + ".pem";
367 368
            CertificateManager.getInstance().setCertificateLocation(mnCertificatePath);
369
            Settings.getConfiguration().addProperty("D1Client.CN_URL", PropertyService.getProperty("dataone.coordinatingNodeBaseURL"));
368 370
            cn = D1Client.getCN();
369 371
            logMetacat.debug("Registering node with DataONE.");
370 372
            // Session is null, because the libclient code automatically sets up an

Also available in: Unified diff