...
Karaf provides some commands to administer multiple instances. An instance of Karaf is a copy that you can launch separately and deploy applications onto. An instance does not contain a full copy of Karaf, but only a copy of the configuration files and data
folder which contains all runtime informations, logs and temporary files.
As of 1.0 version, only a single command is provided to create a new instance. Below is an example of the command:
Code Block |
---|
admin create /Users/gnodet/tmp/karaf1
|
Commands | Description |
---|---|
change-port | Changes the port of an existing container instance. |
connect | Connects to an existing container instance. |
create | Creates a new container instance. |
destroy | Destroys an existing container instance. |
list | List all existing container instances. |
start | Starts an existing container instance. |
stop | Stops an existing container instance. |
Those commands are also available from outside the OSGi environment using the admin
/admin.bat
script in the bin
folderSuch a command will create a new instance in the given directory. To start it, go into the above directory and launch bin/karaf
or bin\karaf.bat
on Windows. An instance is still pointing to the original home
directory, but the base
directory reflects the directory which has been created. You can see that using the info
command.
Wiki Markup |
---|
{scrollbar} |