Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.このコンテンツは選択した言語では利用できません。
2.2. Deploy a Profile
Deploy a profile to the child container リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Having created the child container, as described in Section 2.1, “Create a Fabric”, you can now deploy a profile to it.
Note
Do not deploy profiles that have the same PID defined with different values. If you do, the fabric uses the values of the last one deployed.
To deploy a profile to the container, follow these steps:
- Open a terminal and
cd
to the$FUSE_HOME/quickstarts/beginner/camel-log
directory. - Build the camel-log quickstart by entering this command:
mvn clean install
$ mvn clean install
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Upload the camel-log quickstart profile to the fabric container by entering this command:
mvn fabric8:deploy
$ mvn fabric8:deploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf this is the first time you've run this command, it prompts you to enter theusername
andpassword
to use to log into the fabric container. - Deploy the
quickstarts-beginner-camel.log
profile into thechild
container by entering this console command:JBossFuse:karaf@root> fabric:container-change-profile child quickstarts-beginner-camel.log
JBossFuse:karaf@root> fabric:container-change-profile child quickstarts-beginner-camel.log
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify that the camel-log quickstart profile,
quickstarts-beginner-camel.log
, was uploaded successfully by entering thefabric:status
console command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify that the
quickstarts-beginner-camel.log
profile deployed successfully to thechild
container, issuing thefabric:container-list
command:JBossFuse:karaf@root> fabric:container-list
JBossFuse:karaf@root> fabric:container-list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow until thechild
container's status changes tosuccess
:[id] [version] [type] [connected] [profiles] [provision status] root* 1.0 karaf yes fabric success fabric-ensemble-0000-1 jboss-fuse-full child 1.0 karaf yes quickstarts-beginner-camel.log success
[id] [version] [type] [connected] [profiles] [provision status] root* 1.0 karaf yes fabric success fabric-ensemble-0000-1 jboss-fuse-full child 1.0 karaf yes quickstarts-beginner-camel.log success
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
View the sample output リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
When it is running, the
quickstarts-beginner-camel.log
profile writes a message to the container's log every five seconds. To verify that the profile is running properly, you can look for these messages in the child container's log, as follows:
- Connect to the
child
container, by entering the following console command:JBossFuse:karaf@root> container-connect child
JBossFuse:karaf@root> container-connect child
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - After logging on to the
child
container, view thechild
container's log using thelog:tail
command, as follows:JBossFuse:karaf@root> log:tail
JBossFuse:karaf@root> log:tail
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You should see some output like the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Type Ctrl-C to exit the log view and return to the child container's console prompt.
- Type Ctrl-D to exit the child container's console, which returns you to the root container's console.