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:
Deploy the
gs-cxf-01profile into thechild1container by entering this console command:karaf@root> fabric:container-change-profile child1 gs-cxf-01
Deploy the
gs-cxf-02profile into thechild2container by entering this console command:karaf@root> fabric:container-change-profile child2 gs-cxf-02
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:
Open a new command prompt and
cdtoget-started/cxf-basic.Test the
gs-cxf-01profile (which deploys a Web service listening on port 8185) by entering this command:mvn -Pclient -Dexec.args="http://localhost:8185/PersonServiceCF"
Test the
gs-cxf-02profile (which deploys a Web service listening on port 8186) by entering this command:mvn -Pclient -Dexec.args="http://localhost:8186/PersonServiceCF"








