[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [equinox-dev] Accessing the equinox console as a service
- From: "Kirchev, Lazar" <l.kirchev@xxxxxxx>
- Date: Mon, 3 May 2010 17:02:33 +0200
- Accept-language: en-US, de-DE
- Acceptlanguage: en-US, de-DE
- Delivered-to: firstname.lastname@example.org
- Thread-index: AcrqyMcH3Sm0IPFyQs+xtuC+wN0/4wACIrdA
- Thread-topic: [equinox-dev] Accessing the equinox console as a service
You create the ConsoleSession with your own input and output streams,
so you have full control over them. You can find an example how to use ConsoleSession
in https://bugs.eclipse.org/bugs/show_bug.cgi?id=279562 There the example is for adding
telnet support, but similar approach should work for your case.
From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Mathieu Baudier
Sent: Monday, May 03, 2010 4:59 PM
Subject: [equinox-dev] Accessing the equinox console as a service
I want to provide a remote access to the console commands via a
service (we use equinox as a headless server runtime along with Spring
We don't want to go through telnet (for security reasons and in order
to use the existing JMS and/or http transports provided by the
This service would simply receive a command (like 'ss', etc.) and
return the output.
So, on the server/runtime side I need something like:
String output = myConsoleService.execute(myCommand);
As far as I could see there is no easy way to plug into the console
and call it programatically.
Did I miss something?
Is there a recommended approach?
Or should I hack the existing stream based implementation?
Thanks in advance!
equinox-dev mailing list