Tutorial OSGi avec Apache Karaf: Difference between revisions
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
=Installation et démarrage= |
=Installation et démarrage= |
||
Téléchargez la distribution binaire d'Apache Karaf |
Téléchargez la [http://karaf.apache.org/index/community/download.html distribution binaire] d'Apache Karaf |
||
Dans un shell, exécutez bin/karaf |
Dans un shell, exécutez bin/karaf |
||
=Premières Commandes= |
=Premières Commandes= |
||
Revision as of 23:17, 18 December 2012
ce tutoriel OSGi est réalisé avec Apache Karaf 2.3.0
Installation et démarrage
Téléchargez la distribution binaire d'Apache Karaf
Dans un shell, exécutez bin/karaf
Premières Commandes
echo Liste les bundles déployés list list -t 0 echo Liste les services publiés ls echo Liste les entrées du journal ld -n 10
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. Ce fichier suit le [karaf.apache.org/xmlns/features/v1.0.0 schéma].
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