Tutorial OSGi avec Apache Karaf: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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= <pre> list list -t 0…") |
No edit summary |
||
| Line 1: | Line 1: | ||
ce tutoriel est réalisé avec [[Apache Karaf]] 2.3.0 |
ce tutoriel est réalisé avec [[Apache Karaf]] 2.3.0 |
||
=Installation et démarrage= |
|||
Téléchargez la distribution binaire d'Apache Karaf |
Téléchargez la distribution binaire d'Apache Karaf |
||
| Line 6: | Line 8: | ||
=Commandes= |
=Premières Commandes= |
||
<pre> |
<pre> |
||
list |
list |
||
Revision as of 22:56, 18 December 2012
ce tutoriel 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
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