当前位置: 代码迷 >> Web前端 >> Felix札记5-Felix Web Management Console
  详细解决方案

Felix札记5-Felix Web Management Console

热度:1230   发布时间:2012-07-26 12:01:08.0
Felix笔记5-Felix Web Management Console

1. Install WMC

1.1 添加依赖:

????? 一个Http Service 实现 ,可选在一下服务:

????? Apache Felix Http Service,Pax Web Service,Equinox Http Service Implementation.

????? 可选依赖:

????? OSGi Log Service: If installed, the console provides access to the log entries
????? OSGi Configuration Admin Service and OSGi Metatype Service: If installed, the console

????? provides configuration administration functionality
????? Apache Felix Declarative Services: If installed, the console provides functionality
????? to inspect declared components

1.2 VMC版本

????? Full Variants:org.apache.felix.webconsole;

????? Bare Varinats:org.apache.felix,wenconsole.bare,需另外安装:Apache Commons-io,

????? Apache? Commons-fileupload,JSON

????? Apache Commons IO: Library that provides common I/O functionality;
????? Apache Commons FileUpload: For file upload functionality;
????? JSON: For JavaScript Object Notation, a library that implements this simple data interchange

??????????????? format。

2.? 访问

???? http://localhost:8080/system/console/

???? 默认账号密码:admin/admin

3.? VMC配置

???? (1)Http Service的配置

????? 配置监听端口:

????? org.osgi.service.http.port默认为:8080, org.osgi.service.http.port=8080

???? (2) 控制台的配置 ????

??? ? The Web Console is configured using the OSGi Configuration Admin Service in that the

????? Web Console registered a ManagedService with Service PID?

????? org.apache.felix.webconsole.internal.servlet.OsgiManager .

  相关解决方案