Jump To Close Expand all Collapse all Table of contents Deploying into Apache Karaf I. Developer Guide Expand section "I. Developer Guide" Collapse section "I. Developer Guide" 1. Deploying using an OSGi bundle Expand section "1. Deploying using an OSGi bundle" Collapse section "1. Deploying using an OSGi bundle" 1.1. OSGi overview 1.2. Prerequisites 1.3. Preparing the OSGi bundle 1.4. Deploying the OSGi bundle 2. Introduction to OSGi Expand section "2. Introduction to OSGi" Collapse section "2. Introduction to OSGi" 2.1. Overview 2.2. Architecture of Apache Karaf 2.3. OSGi Framework Expand section "2.3. OSGi Framework" Collapse section "2.3. OSGi Framework" 2.3.1. Overview 2.3.2. OSGi architecture 2.4. OSGi Services Expand section "2.4. OSGi Services" Collapse section "2.4. OSGi Services" 2.4.1. Overview 2.4.2. OSGi service registry 2.5. OSGi Bundles 3. Building an OSGi Bundle Expand section "3. Building an OSGi Bundle" Collapse section "3. Building an OSGi Bundle" 3.1. Generating a Bundle Project Expand section "3.1. Generating a Bundle Project" Collapse section "3.1. Generating a Bundle Project" 3.1.1. Generating bundle projects with Maven archetypes 3.1.2. Apache Camel archetype 3.1.3. Building the bundle 3.2. Modifying an Existing Maven Project Expand section "3.2. Modifying an Existing Maven Project" Collapse section "3.2. Modifying an Existing Maven Project" 3.2.1. Overview 3.2.2. Change the package type to bundle 3.2.3. Add the bundle plug-in to your POM 3.2.4. Customize the bundle plug-in 3.2.5. Customize the JDK compiler version 3.3. Packaging a Web Service in a Bundle Expand section "3.3. Packaging a Web Service in a Bundle" Collapse section "3.3. Packaging a Web Service in a Bundle" 3.3.1. Overview 3.3.2. Modifying the POM file to generate a bundle 3.3.3. Mandatory import packages 3.3.4. Sample Maven bundle plug-in instructions 3.3.5. Add a code generation plug-in 3.3.6. OSGi configuration properties 3.3.7. Configuring the Bundle Plug-In 3.3.8. OSGI configAdmin file naming convention 4. Hot deployment vs manual deployment Expand section "4. Hot deployment vs manual deployment" Collapse section "4. Hot deployment vs manual deployment" 4.1. Hot Deployment Expand section "4.1. Hot Deployment" Collapse section "4.1. Hot Deployment" 4.1.1. Hot deploy directory 4.2. Hot undeploying a bundle 4.3. Manual Deployment Expand section "4.3. Manual Deployment" Collapse section "4.3. Manual Deployment" 4.3.1. Overview 4.3.2. Installing a bundle 4.3.3. Uninstalling a bundle 4.3.4. URL schemes for locating bundles 4.4. Redeploying bundles automatically using bundle:watch 5. Lifecycle Management Expand section "5. Lifecycle Management" Collapse section "5. Lifecycle Management" 5.1. Bundle lifecycle states 5.2. Installing and resolving bundles 5.3. Starting and stopping bundles 5.4. Bundle start level 5.5. Specifying a bundle’s start level 5.6. System start level 6. Troubleshooting Dependencies Expand section "6. Troubleshooting Dependencies" Collapse section "6. Troubleshooting Dependencies" 6.1. Missing dependencies 6.2. Required features or bundles are not installed 6.3. Import-Package header is incomplete 6.4. How to track down missing dependencies 7. Deploying Features Expand section "7. Deploying Features" Collapse section "7. Deploying Features" 7.1. Creating a Feature Expand section "7.1. Creating a Feature" Collapse section "7.1. Creating a Feature" 7.1.1. Overview 7.2. Create a custom feature repository 7.3. Add a feature to the custom feature repository 7.4. Add the local repository URL to the features service 7.5. Add dependent features to the feature 7.6. Add OSGi configurations to the feature 7.7. Automatically deploy an OSGi configuration 8. Deploying a Feature Expand section "8. Deploying a Feature" Collapse section "8. Deploying a Feature" 8.1. Overview 8.2. Installing at the console 8.3. Uninstalling at the console 8.4. Hot deployment 8.5. Adding a feature to the boot configuration 9. Deploying a Plain JAR Expand section "9. Deploying a Plain JAR" Collapse section "9. Deploying a Plain JAR" 9.1. Converting a JAR Using the wrap Scheme 10. OSGi Services Expand section "10. OSGi Services" Collapse section "10. OSGi Services" 10.1. The Blueprint Container Expand section "10.1. The Blueprint Container" Collapse section "10.1. The Blueprint Container" 10.1.1. Blueprint Configuration 10.1.2. Defining a Service Bean 10.1.3. Using properties to configure Blueprint 10.2. Exporting a Service 10.3. Importing a Service 10.4. Publishing an OSGi Service Expand section "10.4. Publishing an OSGi Service" Collapse section "10.4. Publishing an OSGi Service" 10.4.1. Overview 10.4.2. Prerequisites 10.4.3. Generating a Maven project 10.4.4. Customizing the POM file 10.4.5. Writing the service interface 10.4.6. Writing the service class 10.4.7. Writing the Blueprint file 10.4.8. Running the service bundle 10.5. Accessing an OSGi Service Expand section "10.5. Accessing an OSGi Service" Collapse section "10.5. Accessing an OSGi Service" 10.5.1. Overview 10.5.2. Prerequisites 10.5.3. Generating a Maven project 10.5.4. Customizing the POM file 10.5.5. Writing the Blueprint file 10.5.6. Writing the client class 10.5.7. Running the client bundle 10.6. Integration with Apache Camel Expand section "10.6. Integration with Apache Camel" Collapse section "10.6. Integration with Apache Camel" 10.6.1. Overview 10.6.2. Registry chaining 10.6.3. Sample OSGi service interface 10.6.4. Sample service export 10.6.5. Invoking the OSGi service from Java DSL 10.6.6. Invoking the OSGi service from XML DSL 11. Deploying using a JMS broker Expand section "11. Deploying using a JMS broker" Collapse section "11. Deploying using a JMS broker" 11.1. AMQ 7 quickstart 11.2. Using the Artemis core client 12. URL Handlers Expand section "12. URL Handlers" Collapse section "12. URL Handlers" 12.1. File URL Handler 12.2. HTTP URL Handler 12.3. Mvn URL Handler 12.4. Wrap URL Handler 12.5. War URL Handler II. User Guide Expand section "II. User Guide" Collapse section "II. User Guide" 13. Introduction to the Deploying into Apache Karaf user guide Expand section "13. Introduction to the Deploying into Apache Karaf user guide" Collapse section "13. Introduction to the Deploying into Apache Karaf user guide" 13.1. Introducing Fuse Configuration 13.2. OSGi configuration 13.3. Configuration files 13.4. Config Console Commands 13.5. JMX ConfigMBean 13.6. Using the console Expand section "13.6. Using the console" Collapse section "13.6. Using the console" 13.6.1. Available commands 13.6.2. Subshell and completion mode 13.6.3. Unix like environment Expand section "13.6.3. Unix like environment" Collapse section "13.6.3. Unix like environment" 13.6.3.1. Help or man 13.6.3.2. Completion 13.6.3.3. Alias 13.6.3.4. Key binding 13.6.3.5. Pipe 13.6.3.6. Grep, more, find, … 13.6.3.7. Scripting 13.6.4. Security 14. Provisioning Expand section "14. Provisioning" Collapse section "14. Provisioning" 14.1. Application 14.2. OSGi 14.3. Feature and resolver 14.4. Features repositories 14.5. Boot features 14.6. Features upgrade 14.7. Overrides 14.8. Feature bundles Expand section "14.8. Feature bundles" Collapse section "14.8. Feature bundles" 14.8.1. Start Level 14.8.2. Simulate, Start and stop 14.8.3. Dependency 14.9. Dependent features Expand section "14.9. Dependent features" Collapse section "14.9. Dependent features" 14.9.1. Feature prerequisites 14.10. Feature configurations 14.11. Feature configuration files Expand section "14.11. Feature configuration files" Collapse section "14.11. Feature configuration files" 14.11.1. Requirements 14.12. Commands Expand section "14.12. Commands" Collapse section "14.12. Commands" 14.12.1. feature:repo-list 14.12.2. feature:repo-add 14.12.3. feature:repo-refresh 14.12.4. feature:repo-remove 14.12.5. feature:list 14.12.6. feature:install 14.12.7. feature:start 14.12.8. feature:stop 14.12.9. feature:uninstall 14.13. Deployer 14.14. JMX FeatureMBean Expand section "14.14. JMX FeatureMBean" Collapse section "14.14. JMX FeatureMBean" 14.14.1. Attributes 14.14.2. Operations 14.14.3. Notifications 15. Remote Expand section "15. Remote" Collapse section "15. Remote" 15.1. SSHd server Expand section "15.1. SSHd server" Collapse section "15.1. SSHd server" 15.1.1. Configuration 15.1.2. Console clients Expand section "15.1.2. Console clients" Collapse section "15.1.2. Console clients" 15.1.2.1. System native clients 15.1.2.2. ssh:ssh command 15.1.2.3. Apache Karaf client 15.1.2.4. Logout 15.1.3. Filsystem clients Expand section "15.1.3. Filsystem clients" Collapse section "15.1.3. Filsystem clients" 15.1.3.1. Native SCP/SFTP clients 15.1.3.2. Apache Maven 15.2. JMX MBeanServer 16. Building with Maven Expand section "16. Building with Maven" Collapse section "16. Building with Maven" 16.1. Maven Directory Structure Expand section "16.1. Maven Directory Structure" Collapse section "16.1. Maven Directory Structure" 16.1.1. Overview 16.1.2. Standard directory layout 16.1.3. pom.xml file 16.1.4. src and target directories 16.1.5. main and test directories 16.1.6. java directory 16.1.7. resources directory 16.1.8. Blueprint container 17. Maven Indexer Plugin 18. Log Expand section "18. Log" Collapse section "18. Log" 18.1. Configuration files 18.2. Log4j v2 support 18.3. Commands Expand section "18.3. Commands" Collapse section "18.3. Commands" 18.3.1. log:clear 18.3.2. log:display 18.3.3. log:exception-display 18.3.4. log:get 18.3.5. log:log 18.3.6. log:set 18.3.7. log:tail 18.4. JMX LogMBean Expand section "18.4. JMX LogMBean" Collapse section "18.4. JMX LogMBean" 18.4.1. Attributes 18.4.2. Operations 18.5. Advanced configuration Expand section "18.5. Advanced configuration" Collapse section "18.5. Advanced configuration" 18.5.1. Filters 18.5.2. Nested appenders 18.5.3. Error handlers 18.5.4. OSGi specific MDC attributes 18.5.5. Enhanced OSGi stack trace renderer 18.5.6. Custom appenders 19. Security Expand section "19. Security" Collapse section "19. Security" 19.1. Realms Expand section "19.1. Realms" Collapse section "19.1. Realms" 19.1.1. Users, groups, roles, and passwords Expand section "19.1.1. Users, groups, roles, and passwords" Collapse section "19.1.1. Users, groups, roles, and passwords" 19.1.1.1. Commands Expand section "19.1.1.1. Commands" Collapse section "19.1.1.1. Commands" 19.1.1.1.1. jaas:realm-list 19.1.1.1.2. jaas:realm-manage 19.1.1.1.3. jaas:user-list 19.1.1.1.4. jaas:user-add 19.1.1.1.5. jaas:user-delete 19.1.1.1.6. jaas:group-add 19.1.1.1.7. jaas:group-delete 19.1.1.1.8. jaas:group-role-add 19.1.1.1.9. jaas:group-role-delete 19.1.1.1.10. jaas:update 19.1.1.1.11. jaas:cancel 19.1.2. Passwords encryption 19.1.3. Managing authentication by key 19.1.4. RBAC Expand section "19.1.4. RBAC" Collapse section "19.1.4. RBAC" 19.1.4.1. OSGi services 19.1.4.2. Console 19.1.4.3. JMX 19.1.4.4. WebConsole 19.1.5. SecurityMBean Expand section "19.1.5. SecurityMBean" Collapse section "19.1.5. SecurityMBean" 19.1.5.1. Operations 19.1.6. Security providers Legal Notice Settings Close Language: English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Red Hat Training A Red Hat training course is available for Red Hat Fuse Part I. Developer Guide This part contains information for developers. Previous Next