yeah, +1 for use this ssh client way. It's very powerful and decouple the client the server, that said, you can use any language(even script, ant) to operation the server ------------- Freeman(Yue) Fang
Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-11-2, at 上午3:50, Jean-Baptiste Onofré wrote: > Another "idea" could be to leverage the SSH layer (like the Karaf client > does) from C# (for instance by embedding Putty): like this you can connect to > a running Karaf instance and execute command to the shell console (using SSH > channel). > > Regards > JB > > On 11/01/2012 08:49 PM, Jean-Baptiste Onofré wrote: >> Hi Alan, >> >> directly using the Karaf console looks "difficult" (I'm not a C# expert). >> >> I think an "easy" way is to use the JMX layer. From C#, you can connect >> to the Karaf JMX layer and interact with Karaf (Karaf provides a large >> set of MBeans where you can do the same as in the shell console). >> >> Other projects (like Jolokia, JMX WS Connector, IKVM, etc) can also >> expose these MBeans via HTTP/JSON/XML, etc. >> >> Regards >> JB >> >> On 11/01/2012 08:20 PM, AlanFoster wrote: >>> Hi all, >>> >>> Is there a way for C# to interact with the Karaf console and send in >>> specific commands like starting/stopping bundles, and then being able >>> to see >>> exactly when the bundle has successfully been installed/uninstalled >>> >>> The exact use case is :: We are running a set of C# unit tests which need >>> needs to install/uninstall bundles and change configuration cfg files >>> to see >>> that the behaviour is as expected >>> >>> Is this something that is possible? >>> >>> Alan >>> >>> >>> >>> -- >>> View this message in context: >>> http://karaf.922171.n3.nabble.com/Interact-with-Karaf-using-C-tp4026654.html >>> >>> Sent from the Karaf - User mailing list archive at Nabble.com. >>> >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
