Capturing System.out.println() statements with JEM? [message #105433] |
Tue, 06 September 2005 22:13  |
Eclipse User |
|
|
|
Originally posted by: lmorley.wpi.edu
If a remote class calls sys.out.println, what io stream does that go to?
Is there a way to redirect that to the console? I have a handle to a
ProxyFactoryRegistry.
Thank you,
Liam Morley
|
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #105663 is a reply to message #105478] |
Wed, 07 September 2005 20:25   |
Eclipse User |
|
|
|
Originally posted by: lmorley.wpi.edu
Rich, thanks for your response. If I know that it's a remote JVM (which
I'm assuming corresponds to a REMProxyFactoryRegistry), is there a way
to do it then? I looked briefly into callbacks, but I wasn't sure where
to go from there (and what to do with msgID, if I'm even on the right
track).
Liam
Rich Kulp wrote:
> No, there is no consistent way to do that. We didn't add that capability
> to the JEM because we have two kinds of registries, one is remote (i.e.
> another JVM, where we can capture the output) and the other is local
> (i.e. it is running in the same jvm, in which case we can't capture it).
>
>
> Liam Morley wrote:
>
>> If a remote class calls sys.out.println, what io stream does that go
>> to? Is there a way to redirect that to the console? I have a handle to
>> a ProxyFactoryRegistry.
>>
>> Thank you,
>> Liam Morley
>
>
|
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #105844 is a reply to message #105804] |
Thu, 08 September 2005 10:27  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You could open an Enhancement bug in Bugzilla for us to expose it. That
way if we ever do implement it you will be notified.
Rich Kulp wrote:
> Sorry, but no, the IProcess isn't exposed.
>
> I've had thoughts of exposing it for debug purposes, but we don't have
> the hooks in there to do it.
>
> However, anything going to System.err will be logged for you in the .log
> file.
>
--
Thanks,
Rich Kulp
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #610683 is a reply to message #105433] |
Wed, 07 September 2005 09:30  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
No, there is no consistent way to do that. We didn't add that capability
to the JEM because we have two kinds of registries, one is remote (i.e.
another JVM, where we can capture the output) and the other is local
(i.e. it is running in the same jvm, in which case we can't capture it).
Liam Morley wrote:
> If a remote class calls sys.out.println, what io stream does that go to?
> Is there a way to redirect that to the console? I have a handle to a
> ProxyFactoryRegistry.
>
> Thank you,
> Liam Morley
--
Thanks,
Rich Kulp
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #610697 is a reply to message #105478] |
Wed, 07 September 2005 20:25  |
Eclipse User |
|
|
|
Rich, thanks for your response. If I know that it's a remote JVM (which
I'm assuming corresponds to a REMProxyFactoryRegistry), is there a way
to do it then? I looked briefly into callbacks, but I wasn't sure where
to go from there (and what to do with msgID, if I'm even on the right
track).
Liam
Rich Kulp wrote:
> No, there is no consistent way to do that. We didn't add that capability
> to the JEM because we have two kinds of registries, one is remote (i.e.
> another JVM, where we can capture the output) and the other is local
> (i.e. it is running in the same jvm, in which case we can't capture it).
>
>
> Liam Morley wrote:
>
>> If a remote class calls sys.out.println, what io stream does that go
>> to? Is there a way to redirect that to the console? I have a handle to
>> a ProxyFactoryRegistry.
>>
>> Thank you,
>> Liam Morley
>
>
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #610708 is a reply to message #105663] |
Thu, 08 September 2005 10:12  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Sorry, but no, the IProcess isn't exposed.
I've had thoughts of exposing it for debug purposes, but we don't have
the hooks in there to do it.
However, anything going to System.err will be logged for you in the .log
file.
--
Thanks,
Rich Kulp
|
|
|
Re: Capturing System.out.println() statements with JEM? [message #610711 is a reply to message #105804] |
Thu, 08 September 2005 10:27  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You could open an Enhancement bug in Bugzilla for us to expose it. That
way if we ever do implement it you will be notified.
Rich Kulp wrote:
> Sorry, but no, the IProcess isn't exposed.
>
> I've had thoughts of exposing it for debug purposes, but we don't have
> the hooks in there to do it.
>
> However, anything going to System.err will be logged for you in the .log
> file.
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.05912 seconds