As mentioned a bit earlier, the Felix framework start-up Java class resides in the main bundle, located in the bin
directory of the distribution.
To launch Felix from the distribution base directory, in a command-line shell, run:
C:felix>java -jar bin/felix.jar
When Felix launches, it displays a welcome message followed by a command prompt:
_______________
Welcome to Apache Felix Gogo
This means that the Felix user Interface is now ready to accept user commands. Felix Gogo is the default shell environment for the Felix framework. We'll look at it in greater detail in Chapter 3.
You'll need to type this command every time you start Felix, it may be a good idea to create a start-up script. Under Windows, a batch file (for example, run.bat)
containing the preceding command will do the trick.
Behind the scenes, the launch of the Felix application had started the system bundle and all the bundles that were placed for auto-deploy.
Felix has performed the following operations:
felix.jar)
. bundle
directory):org.apache.felix.bundlerepository
), which provides tools to find, download, install, and manage installed bundles. You will learn about the commands provided by this service in a bit. Later, in Chapter 6, Using the OSGi Bundle Repository, you will also learn some more on bundle repositoriesorg.apache.felix.gogo.runtime
), which provides the core command processing functionalityorg.apache.felix.gogo.shell
), which provides the text user interface for interaction with the command processing serviceorg.apache.felix.gogo.command
), which provides a set of basic commands for the operation of the frameworkThe start of the Gogo text user Interface displays the command-line prompt (g! ). It is now ready to accept commands.
As new bundles are started on the framework, their information is kept in the felix-cache
directory and they will also be automatically started when the framework is started.
In the next chapter, we will take a closer look at Gogo and understand some of the commands provided by the Gogo Command bundle.
3.149.240.196