[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Accessing the equinox console as a service

Thanks a lot for your answers!

Unfortunately we are on v3.5.1 and I won't be able to upgrade just for that.

So I guess I will have to find another way...

On Mon, May 3, 2010 at 17:02, Kirchev, Lazar <l.kirchev@xxxxxxx> wrote:
> Hello Mathieu,
>
> 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.
>
> Regards,
> Lazar Kirchev
>
> -----Original Message-----
> From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Mathieu Baudier
> Sent: Monday, May 03, 2010 4:59 PM
> To: equinox-dev@xxxxxxxxxxx
> Subject: [equinox-dev] Accessing the equinox console as a service
>
> Hello,
>
> 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
> DM).
> 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
> application)
>
> 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);
> or myConsoleService(myCommand,myOutputStream);
>
> 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!
>
> Mathieu
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>