osgi:felix
This is an old revision of the document!
Table of Contents
Apache Felix
Apache Felix is a community effort to implement the OSGi Framework and Service platform and other interesting OSGi-related technologies under the Apache license.
Apache Felix Gogo
http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
Apache Felix Gogo is a subproject of Apache Felix implementing a command line shell for OSGi. It is used in many OSGi runtimes and servers (Felix distro, Eclipse IDE, Apache Karaf, …).
Commands
Launch Gogo
java -jar bin/felix.jar
Welcome to Apache Felix Gogo
List bundles
lb
START LEVEL 1 ID|State |Level|Name 0|Active | 0|System Bundle (6.0.1)|6.0.1 1|Active | 1|JLine Bundle (3.7.0)|3.7.0 2|Active | 1|Apache Felix Gogo Command (1.0.2)|1.0.2 3|Active | 1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0 4|Active | 1|Apache Felix Gogo Runtime (1.1.0)|1.1.0 5|Active | 1|MJ-OSGIHelloWorldProvider (1.0.0)|1.0.0 6|Installed | 1|osgi.core (6.0.0.201403061837)|6.0.0.201403061837
Install bundle
g! install file:../OSGiHelloWorldProvider-1.0.jar
Bundle ID: 5
Start service
start 5
Check bundle status
bundle 5
Location file:/E:/MJ/OSGIHelloWorld/target/osgi.hello-world.jar State 32 LastModified 1548357508506 Headers [Export-Package=ro.medjava.osgi.provider.able;version="1.0.0",ro.medjava.osgi.provider;uses:="org.osgi.framework";version="1.0.0", Bundle-ManifestVersion=2, Bundle-SymbolicName=MJ-OSGIHelloWorldProvider, Bundle-Version=1.0.0, Created-By=1.8.0_111 (Oracle Corporation), Manifest-Version=1.0, Bnd-LastModified=1548356548522, Bundle-Name=MJ-OSGIHelloWorldProvider, Import-Package=org.osgi.framework,ro.medjava.osgi.provider.able, Bundle-Activator=ro.medjava.osgi.provider.ProviderActivator, Require-Capability=osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))", Tool=Bnd-4.0.0.201805111645] Version 1.0.0 BundleContext org.apache.felix.framework.BundleContextImpl@9bf0b04 RegisteredServices [HelloWorldService] Bundle 5|Active | 1|MJ-OSGIHelloWorldProvider (1.0.0) Revisions [MJ-OSGIHelloWorldProvider [5](R 5.0)] SymbolicName MJ-OSGIHelloWorldProvider BundleId 5 ServicesInUse null
osgi/felix.1548358917.txt.gz · Last modified: 2023/07/04 19:36 (external edit)