OSGI Services and Components Flashcards
What is the main purpose of using categories in CQ HTML client library OSGI Service?
A. To link the categories name with the component name, so that the client library can be included automatically into the component.
B. To easily find client libraries when the user searches categories in the author environment.
C. To define the type of files that the client library contains, e.g. JavaScript and/or CSS.
D. To uniquely name a group of client libraries to be included in templates or components and to reference dependencies to other client libraries
D
Which tab in the Apache Felix Web OSGi Console is used to install OSGi bundles? A. Bundles tab. B. Components tab. C. OSGi Installer tab. D. Services tab.
A
How does the Configuration Admin service use Persistence IDs (PID)?
A. It generates a new PID every time the configuration of the services changes.
B. It associates the service configuration data with PIDs.
C. It stores all the versions of the entire configuration for a service.
D. It stores the date for the last configuration.
B
When you are saving or updating a configuration in the Configurations tab in the Apache Felix Web OSGi Console, where are these configuration settings saved?
A. In an internal SQLite DB used by the Apache Felix Web OSGi Console.
B. To the CRX /var/config/ path.
C. Under /crx-quickstart/launchpad/config/.
D. The new configuration is only kept at runtime.
C
Which OSGi configuration settings take over precedence on start-up?
A. Repository nodes with type sling:OsgiConfig under /libs//config.
B. Repository nodes with type sling:OsgiConfig under /apps//config.
C. Repository nodes with type sling:OsgiConfig under /libs//install.
D. Any .config files from /crx-quickstart/launchpad/config/ on the local file system.
B
You have changed the CRX admin password. Which console or tool do you also need to update? A. CQSE Admin Console B. CQ User Administration Console C. Apache Felix Web Console D. CRXDE Lite
C
How does the OSGi installer manage a bundle if a bundle with the same symbolic name is already installed?
A. It uses the new bundle only if it has a higher version.
B. The previous bundle is replaced by the last provided bundle.
C. Keep the old one and write an error to the log file.
D. Stops the current bundle and allows the user to select which one to start.
A
Which service scans the CRX repository for artifacts and provides them to the OSGi installer? A. Sling JCR Installer. B. Sling JCR ClassLoader. C. Launchpad Provider. D. Apache Felix Installer.
A
What is the purpose of the Export Package Manifest header?
A. Define packages that can be imported by other bundles.
B. Stores the defined packages in the CQ installation folder.
C. Define packages that are copied into a .war file.
D. Stores the defined packages as ZIP file for uploading to CRX.
A
Which is a difference between an OSGI bundle and a Java package?
A. The bundle contains extra metadata defined in a MANIFEST.MF file
B. The bundle package structure is completely different than the one of a .jar file
C. None. You can install and activate any java package in an OSGI container
D. A jar file cannot be inside an OSGI Bundle
A
To change the configuration of a bundle in the repository. Which location has the highest priority ?
A. /crx-quickstart/launchpad/config/* on the local file system
B. /libs//config/
C. /apps//config/
D. /etc/design/config/*
C
You have created a bundle in CRXDE. What does the .bnd file contain?
A. The list of all classes inside the bundle
B. Extra metadata about the bundle used by the CRXDE build process.
C. The Activator class to notify start and stop events
D. The compilation and deployment steps of the bundle
B