码迷,mamicode.com
首页 > 其他好文 > 详细

ServiceMix in daemon mode

时间:2014-12-10 17:41:55      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   os   for   strong   on   art   

For development simplicity, we can start Karaf in daemon mode by executing ‘bin\admin.bat start root‘, here root is the default instance.

In production environment, we need to integrate Karaf directly into your operating system service control (http://karaf.apache.org/manual/latest/users-guide/wrapper.html):

  1. First you need to install the Service Wrapper feature: features:install wrapper
  2. Once installed, wrapper feature will provide wrapper:install new command in the Karaf shell, you can get help from wrapper:install --help
  3. Then you can follow the generated messages from wrapper:install to install the service

Finally while ServiceMix is started, you just connect to Karaf to check whether these services are available. Luckily Karaf offers 2 ways for doing so: a remote Shell accessible through an SSH connection, and a JMX interface.
Thus we can use the SSH connection now. The port used by Karaf to host the SSH server is configured in a file called ‘org.apache.karaf.shell.cfg‘ located in the ‘etc‘ folder in the Karaf installation. When Karaf is running, it also starts an SSH server, and a JMX server. So we can connect to Karaf through SSH by executing ‘bin\client.bat -a 8101 -h 159.99.203.109 -u karaf‘. Here default user/password is karaf/karaf, and you can get help from ‘client.bat –help‘.
Note: you can also use putty or kitty SSH client.

作者:Hans.Hu
出处:http://huyh.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

ServiceMix in daemon mode

标签:blog   http   io   ar   os   for   strong   on   art   

原文地址:http://www.cnblogs.com/huyh/p/4155748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!