Adding a new Connector
This section describes an example of the process of adding a new Connector.
You can use the examples/pre-prod/walkthroughs/change-management/addExampleConnectorWalkthrough.sh
script to add a new second example connector to the example deployment.
Note: Before you complete this walkthrough, reset your environment to the base configuration. For more information, see Resetting your environment.
Updating Connectors.json
To make liberty aware of the new connector, you need to add a new connector definition to the connectors.json. See Add example Connector to connectors.json
section of the walkthrough script.
Running a new Connector container
To add a connector in the Docker environment, you need to run a new Connector container.
See the Add example Connector
section of the walkthrough script.
The run_example_connector
server function in the server_functions.sh
is used to run a new Example connector container.
Updating your configuration
After the connectors.json has been updated and the example connector has been run, build a new configured liberty image with the updated configuration.
The build_liberty_configured_image_for_pre_prod
server function builds the configured Liberty image. For more information, see Building a configured Liberty image.
The run_liberty
server function runs a Liberty container. For more information about running a Liberty container, see Liberty.
See the Running the Liberty containers
section of the walkthrough script.
Note: You must run both Liberty containers.
The wait_for_i2_analyze_service_to_be_live
common function ensures that Liberty is running.