Tutorial OSGi avec Apache Karaf
Jump to navigation
Jump to search
ce tutoriel est réalisé avec Apache Karaf 2.3.0
Téléchargez la distribution binaire d'Apache Karaf
Dans un shell, exécutez bin/karaf
Commandes
list list -t 0
Console Web
features:install webconsole
Ouvrez la page http://localhost:8181/system/console dans un navigateur (username karaf and password karaf)
Déploiement (Provisionning)
Features
Copiez le fichier Media:ipojo-features.xml dans le répertoire features dans l'installation de Karaf
features:list features:addUrl file:features/ipojo-features.xml features:info ipojo features:install ipojo
OBR
features:install obr obr:listurl obr:addurl http://felix.apache.org/obr/releases.xml obr:list obr:list iPOJO obr:start "Apache Felix iPOJO"
Configuration
config:list config:proplist -p org.apache.karaf.shell config:edit org.apache.karaf.shell config:propset sshPort 8102 config:update --bypass-storage config:edit org.apache.karaf.shell config:propset sshPort 8103 config:cancel config:edit org.apache.karaf.shell config:propset sshPort 8101 config:update --bypass-storage
JMX
Lancez jconsole ou jvisualvm
Parcourez les MBeans