Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Liam Morley is currently offline Liam MorleyFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Update Window1 from Window2
Next Topic:Menus under VE
Goto Forum:
  


Current Time: Wed Sep 25 10:23:53 GMT 2024

Powered by FUDForum. Page generated in 0.06074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top