Service deployment
Before you begin
-
If you installed ZooKeeper in standalone mode, you first need to install and start two bundles: org.talend.esb.locator and org.apache.zookeeper.zookeeper that activate the Service Locator feature in the Talend Runtime Container. And then, you can deploy the three bundles you previously created and start them. To do so, execute the following commands sequentially:
karaf@trun> bundle:install mvn:org.apache.zookeeper/zookeeper/3.3.3 karaf@trun> bundle:install mvn:org.talend.esb/locator/ karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_common/1.0.0 karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_service/1.0.0 karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_client/1.0.0 karaf@trun> bundle:start 154 karaf@trun> bundle:start 155 karaf@trun> bundle:start 156 karaf@trun> bundle:start 157
-
If you installed ZooKeeper as an OSGi bundle, you will only need to deploy the three bundles you previously created and start them:
karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_common/1.0.0 karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_service/1.0.0 karaf@trun> bundle:install mvn:org.talend.esb.examples.locator/locator_client/1.0.0 karaf@trun> bundle:start 156 karaf@trun> bundle:start 157
The bundle numbers returned for each bundle:install command will probably be different from those used in this sample; use those numbers instead.
Once all the bundles are installed, the environment is ready to test. Note that locator_client needs to stay stopped for the time being.
About this task
Once the Service Locator has been installed successfully in the Talend Runtime Container, you can deploy the services.