- Felix 개요
- CentOS에서 Felix 설치
- Apache Felix Gogo
- 참고 문헌
OSGi (Open Service Gateway Initiative) R4 Service Platform인 Felix를 정리 합니다.
홈페이지 : http://felix.apache.org/ <- Oscar-OSGi Project
iPOJO Toolbox : http://sourceforge.net/projects/ipojo-toolbox/
Web Console : http://felix.apache.org/site/apache-felix-web-console.html
다운로드 :
라이선스 : Apachev2
플랫폼 : Java
Felix 개요
jetty servlet 엔진을 올릴 수 있음
ServiceMix 4 - An open source ESB with an OSGi core. It also includes JBI support.
Apache Sling - OSGi-based applications layer for JCR content repositories.
EasyBeans - open source EJB 3 container.
GlassFish (v3) - application server for Java EE.
JOnAS 5 - open source Java EE 5 application server.
Project Fuji in Open ESB v3 - Light weight and modular ESB core runtime.
SIP Communicator - open source Java VoIP and multi-protocol instant messenger.
modulefusion - open source collection for Java enterprise applications.
NetBeans - The free MultiLanguage IDE.
Spring Roo - RAD tool for Java-based enterprise applications
Opencast Matterhorn - Open Source software to produce, manage and distribute academic audio and video content, especially lecture recordings.
CentOS에서 Felix 설치
Felix 설치
cd install
wget http://mirror.apache-kr.org//felix/org.apache.felix.main.distribution-4.2.1.tar.gz
tar zxvf org.apache.felix.main.distribution-4.2.1.tar.gz
chown -R hduser:hdgroup felix-framework-4.2.1
mv felix-framework-4.2.1 /nas/appl/felix
vi ~hduser/.bash_profile
### ----------------------------------------------------------------------------
### Felix 설정
### ----------------------------------------------------------------------------
export FELIX_HOME=/nas/appl/hue
export PATH=$PATH:$FELIX_HOME/build/env/bin
vi /nas/appl/felix/conf/config.properties
felix.auto.deploy.dir=bundle
org.osgi.service.http.port=8090
su - hduser
cd /nas/appl/felix/bundle
wget http://mirror.apache-kr.org//felix/org.apache.felix.http.api-2.2.2.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.http.base-2.2.2.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.http.bridge-2.2.2.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.http.bundle-2.2.2.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.http.jetty-2.2.2.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.configadmin-1.8.0.jar
wget http://mirror.apache-kr.org//felix/org.apache.felix.eventadmin-1.3.2.jar
#--- /nas/appl/felix/bin/felix.bash 파일을 만들어 felix를 관리 합니다.
Jetty 서비스 port 변경
8080 port에서 8090 port로 변경 합니다.
cd /nas/appl/felix/bundle
mkdir zzdir
cd zzdir
jar xvf ../org.apache.felix.http.jetty-2.2.2.jar
vi OSGI-INF/metatype/metatype.xml
jar cvf ../org.apache.felix.http.jetty-2.2.2.jar *
cd ..
rm -rf zzdir
Apache Felix Gogo
Apache Felix Gogo 명령어
lb #--- Activate된 번들 정보
help
#--- bundle 관리
felix:install file:/nas/appl/felix/bundle/~.jar #--- bundle 추가
felix:start 77 #--- 77번 bundle 시작
ls #--- 파일 목록 보기
참고 문헌
분류: Java