이 콘텐츠는 선택한 언어로 제공되지 않습니다.

6.4. Manual Deployment


Overview

You can manually deploy and undeploy FABs by issuing commands at the Red Hat JBoss Fuse console.

Installing a FAB using the fab: scheme

FABs can be deployed using the fab: URL scheme, which is useful for installing FABs in a general context, such as a FAB URL embedded in an Apache Karaf features file. For example, to install a FAB using the osgi:install command, prefix the FAB's URL with the fab: scheme, as follows:
osgi:install fab:mvn:groupId/artifactId/version
Copy to Clipboard Toggle word wrap

Starting a FAB

To start a FAB, you must first obtain its bundle ID using the osgi:list command. You can then start the FAB using the fab:start command (which takes the bundle ID as its argument).
For example, if you have already installed the FAB named A Camel FAB, entering osgi:list at the console prompt might produce output like the following:
...
[ 175] [Active     ] [            ] [Started] [   60] ServiceMix :: FTP (2009.02.0.psc-01-00RC1)
[ 180] [Installed  ] [            ] [       ] [   60] A Camel FAB (1.0.0.SNAPSHOT)
Copy to Clipboard Toggle word wrap
You can now start the bundle with the ID, 180, by entering the following console command:
fab:start 180
Copy to Clipboard Toggle word wrap
The fab:start command recursively starts all of the FAB's dependent bundles, which ensures that services required by the FAB are available when the FAB starts up.

Stopping a FAB

To stop a FAB, invoke the fab:stop console command (which takes the FAB's bundle ID as its argument).
For example, to stop the FAB with the bundle ID, 180, enter the following console command:
fab:stop 180
Copy to Clipboard Toggle word wrap
The fab:stop command recursively stops all of the FAB's dependent bundles. If you would prefer to perform a shallow stop (that is, to stop only the bundle corresponding to the FAB), use the osgi:stop command instead.

Uninstalling a FAB

To uninstall a FAB, invoke the fab:uninstall console command (which takes the FAB's bundle ID as its argument).
For example, to uninstall the FAB with the bundle ID, 180, enter the following console command:
fab:uninstall 180
Copy to Clipboard Toggle word wrap
The fab:uninstall command also uninstalls the FAB's unused transitive dependencies. Hence, fab:uninstall can potentially uninstall multiple bundles from the OSGi container. If you would prefer to perform a shallow uninstall (that is, to uninstall only the bundle corresponding to the FAB), use the osgi:uninstall command instead.

Bundle lifecycle management commands

Seeing as how a FAB is ultimately transformed into a bundle (after it is deployed into the OSGi container), some of the standard bundle lifecycle commands are also of interest to FAB users. For details, see Section 12.3, “Lifecycle Management”.

URL schemes for locating and installing FABs

When specifying the FAB's URL to the osgi:install command, you can combine fab: with any of the URL schemes supported by Red Hat JBoss Fuse, which includes the following scheme types:
  • Maven scheme—use the combined schemes, fab:mvn:, as follows:
    fab:mvn:groupId/artifactId/version
    Copy to Clipboard Toggle word wrap
    For more details about the mvn: scheme, see Section A.3, “Mvn URL Handler”.
  • File scheme—use the combined schemes, fab:file:, as follows:
    fab:file:PathName
    Copy to Clipboard Toggle word wrap
    Note
    On Windows, use forward slashes, /, instead of backslashes, \, in the pathname, PathName.
    For more details about the file: scheme, see Section A.1, “File URL Handler”.
  • HTTP scheme—use the combined schemes, fab:http:, as follows:
    fab:http:Host[:Port]/[Path]
    Copy to Clipboard Toggle word wrap
    For more details about the http: scheme, see Section A.2, “HTTP URL Handler”.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat