Question : OSGi service opening a console window

I have a service on OSGi. This console, has logging inside (it does not matter what other things it does). This OSGi service, has on different classes used, implemented, the toString function.
I need the following:
1. Find a way, so as in the command prompt of osgi, type something like
-dump   and call the dump() method of my service. Is there a way to do this and how?

2.   i need a way to give the log status, on a different screen of the one of the OSGi console. The way i envisage it, is implement a new service, that opens a new screen, "i don't care if this is a simple java frame or anything else i.e. a command screen console", exposes this on my service as a stream and allow me to write to it. is this possible?

I have these as one, since i only need guidance and since these bind together in terms that what i need to do, is actually output to thee new console, the dump() String output (which dump calls the toString() function of my class).

Any guidance, internet URL is highly appreciated.

Answer : OSGi service opening a console window

Random Solutions  
 
programming4us programming4us