Apache Felix

Apache Felix是OSGi服务平台版本4在Apache许可证下的一个实现。

Felix安装

  1. 准备java开发环境,安装jdk。
  2. 下载并解压felix。下载地址:http://felix.apache.org

Felix文件内容

  • bin: Contains the main application JAR (felix.jar). This is actually the org.apache.felix.main bundle renamed to felix.jar for convenience. We will be starting the framework through this JAR
  • bundle: The auto-deploy directory; bundles in this directory are automatically installed and started at framework startup
  • conf: Contains the configuration files. The default configuration is very suitable for most beginners. As you start looking for more ways to customize your Felix installation, you may come back to the files in this directory for a fine-tuning of the configuration
  • doc: Contains useful documentation on the install and configuration of the framework, as well as on the bundles included by default in the distribution's bundle directory.

After the application is started for the first time, an additional folder will appear:

  • felix-cache: Contains the framework's local cache of installed bundles and their information. This folder can be deleted to reset the framework. Doing this will remove all bundles that have been installed.

Felix运行

        假设felix文件解压到C:\felix,在命令行中输入命令:C:\felix>java -jar bin/felix.jar

        felix启动,命令行输出:

        

        在启动过程中,首先系统Bundle被启动,即felix.jar;接下来安装和启动自动部署的bundle,即bundle文件夹下的bundles;当Gogo Shell bundle被激活,它接受用户的指令输入并对指令进行处理。当命令行出现g!,用户便可以进行指令输入。

转载于:https://my.oschina.net/u/178218/blog/71782

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值