LibraryToggle FramesPrintFeedback

Deploy the Profiles

Deploy profiles to the child containers

Having created the child containers, as described in Create a Fabric, and the profiles, as described in Create Fabric Profiles, you can now deploy the profiles. To do so, follow these steps:

  1. Deploy the gs-cxf-01 profile into the child1 container by entering this console command:

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

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

Test the deployed profiles

You can test the deployed profiles using the WS client from the cxf-basic Maven project described in Create a Web Services Project. To do so, follow these steps:

  1. Open a new command prompt and cd to get-started/cxf-basic.

  2. Test the gs-cxf-01 profile (which deploys a Web service listening on port 8185) by entering this command:

    mvn -Pclient -Dexec.args="http://localhost:8185/PersonServiceCF"
  3. Test the gs-cxf-02 profile (which deploys a Web service listening on port 8186) by entering this command:

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