Home » Archived » Visual Editor (VE) » Capturing System.out.println() statements with JEM?
Capturing System.out.println() statements with JEM? [message #105433] |
Wed, 07 September 2005 02: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 #105478 is a reply to message #105433] |
Wed, 07 September 2005 13: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 #105663 is a reply to message #105478] |
Thu, 08 September 2005 00: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 #105804 is a reply to message #105663] |
Thu, 08 September 2005 14: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 #105844 is a reply to message #105804] |
Thu, 08 September 2005 14: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 13: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] |
Thu, 08 September 2005 00:25 |
Liam Morley Messages: 47 Registered: July 2009 |
Member |
|
|
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 14: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 14: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
|
|
|
Goto Forum:
Current Time: Wed Sep 25 10:23:53 GMT 2024
Powered by FUDForum. Page generated in 0.06074 seconds
|