LibraryToggle FramesPrintFeedback

Given that you have created the child containers, as described in Create a Fabric, and you have created the profiles, as described in Create Fabric Profiles, you can now deploy the profiles by performing the following steps:

  1. Deploy the gs-cxf-01 profile into the child1 container. Enter the following console command:

    karaf@root> fabric:container-change-profile child1 gs-cxf-01
  2. Deploy the gs-cxf-02 profile into the child2 container. Enter the following console command:

    karaf@root> fabric:container-change-profile child2 gs-cxf-02

The deployed profiles can be tested using the WS client from the cxf-basic Maven project described in Create a Web Services Project.

To test the deployed profiles, open a new command prompt and change directory to get-started/cxf-basic. To test the gs-cxf-01 profile (which deploys a Web service listening on port 8185), enter the following command:

mvn -Pclient -Dexec.args="http://localhost:8185/PersonServiceCF"

To test the gs-cxf-02 profile (which deploys a Web service listening on port 8186), enter the following command:

mvn -Pclient -Dexec.args="http://localhost:8186/PersonServiceCF"
Comments powered by Disqus