Programming Guides › Programming Guide for Java Connector Server › Implementing Connectors › How To Test a Connection
How To Test a Connection
To test a connection, do the following:
- Deploy your connector to the Java CS by running ant dist from the top-level jcs-sdk-home directory.
- Start the Java CS using an IDE configuration (this SDK includes configurations for the Eclipse and IDEA IDEs). Starting from within an IDE allows you to debug, but you can also run the Java CS using jcs-dir/build/dist/bin/jcs.bat (Windows) or jcs-dir/build/dist/bin/jcs.sh (Solaris).
- Submit the LDAP ADD request to create the parent endpoint type, and check for a successful response code. At this stage, the Java CS has validated and stored the metadata you provided for the endpoint type. For static endpoint types, the metadata is read from within the connector’s .jar as configured through the contained connector.xml file. For dynamic cases, the metadata is included as the value for the eTMetaData attribute in the ADD request.
- Submit a second LDAP ADD request for an endpoint using a DN directly under the parent endpoint type you created, that contains all the required attributes for the connector (both connection-related and otherwise).
- Check for a successful response code.