I've enhanced the admin shell of ServiceMix Kernel. It now includes the following commands: * create [name] [-p port] * list * start [name] * stop [name] * destroy [name] * change-port [name] [port]
The create command creates a new instance of ServiceMix Kernel with the specified name (at this point, the name and location are the same, but i'd like to separate those two properties). The list command displays all known instances, their main port number (the one that can be used to remotely connect to it), if the instance is running or not, and the process id if it is running. The start command will start a new process which is not tied to the current instance (i.e. if the current kernel is shut down, the instance will still live). Stop will abruptly kill the instance (using a kill command or the windows equivalent). Destroy command will delete the instance from the disk. Lastly, change-port command can be used on a stopped instance to change the port. At creation time, if the port is not specified, a new one will be attributed to the new instance (it's an incrementing counter). Start and stop commands are implemented using shell script or vbs scripts. All the informations are persisted using the PreferencesAdmin service so they will still be available across restart (even the pid is persisted). There are a few enhacnements that could be done, but it now seems a lot more useful that what we had in 1.0.0 (only the create command which was always using the default port). -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://open.iona.com
