Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » AOP and tptp
AOP and tptp [message #14369] Thu, 07 April 2005 11:06 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

I want to use AOP to create log-records (using TPTP framework), and then
use log-correlation to show them in UI.

Is there any in-built support of AOP in TPTP ?

prasen
Re: AOP and tptp [message #14393 is a reply to message #14369] Thu, 07 April 2005 11:38 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Prasen,
Currently, we do not have any direct support for Aspect Oriented
Programming instrumentation in TPTP. However, analogous to all logging
facility support (Logging Agent and Common Base Event) TPTP provides (e.g.
Java Logging, Log4J and Commons), the logging facility is independent of
this support and the tooling (e.g. correlation). As such, when incrementing
your code with AOP instrumentation, ensure Common Base Events are logged to
an XML file, for instance. Then import the Common Base Event XML file into
the TPTP workbench. Alternatively, in your AOP instrumentation, write the
Common Base Event (XML) log records to the
org.eclipse.logging.core.LoggingAgent and attach to the named LoggingAgent
using the TPTP workbench (see the JSR_047 or Apache Commons samples).

Paul
<user@domain.invalid> wrote in message news:d334ef$qd8$1@news.eclipse.org...
> I want to use AOP to create log-records (using TPTP framework), and then
> use log-correlation to show them in UI.
>
> Is there any in-built support of AOP in TPTP ?
>
> prasen
Re: AOP and tptp [message #14420 is a reply to message #14393] Thu, 07 April 2005 11:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Thanks Paul.

Actually I am in the process of writing a log parser/correlator for
wls-log-records. The correlation logic will based on some configurable
parameters (e.g. txId,user, diagnostic-contex-id etc.) at runtime.

So, basically I was thinking of producing some perf-related log-records
to wls-log-files using wls-logging-framework-apis from my AOP advise,
and then reuse rest of the above-mentioned stuff.

As part of my wishful thinking, it would be nice to have some in-built
AOP support , so that I dont have to do the AOP-specific
jvm-configuration myself. Similar to what already exists for
TPTP-Profiler.

prasen

Paul Slauenwhite wrote:
> Hi Prasen,
> Currently, we do not have any direct support for Aspect Oriented
> Programming instrumentation in TPTP. However, analogous to all logging
> facility support (Logging Agent and Common Base Event) TPTP provides (e.g.
> Java Logging, Log4J and Commons), the logging facility is independent of
> this support and the tooling (e.g. correlation). As such, when incrementing
> your code with AOP instrumentation, ensure Common Base Events are logged to
> an XML file, for instance. Then import the Common Base Event XML file into
> the TPTP workbench. Alternatively, in your AOP instrumentation, write the
> Common Base Event (XML) log records to the
> org.eclipse.logging.core.LoggingAgent and attach to the named LoggingAgent
> using the TPTP workbench (see the JSR_047 or Apache Commons samples).
>
> Paul
> <user@domain.invalid> wrote in message news:d334ef$qd8$1@news.eclipse.org...
>
>>I want to use AOP to create log-records (using TPTP framework), and then
>>use log-correlation to show them in UI.
>>
>>Is there any in-built support of AOP in TPTP ?
>>
>>prasen
>
>
>
Re: AOP and tptp [message #14450 is a reply to message #14420] Thu, 07 April 2005 15:36 Go to previous messageGo to next message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Hi Prasen,

We don't have support for real AOP, although we have Probekit which allows
you to build and run pretty complex probes that instrument staticaly Java
class files or JARs.

You may want to take a look at the Probekit documentation in TPTP 4.0 help
(under Collecting Runtime Data With User-Defined Probes).

Marius

<user@domain.invalid> wrote in message news:d337c7$ukk$1@news.eclipse.org...
> Thanks Paul.
>
> Actually I am in the process of writing a log parser/correlator for
> wls-log-records. The correlation logic will based on some configurable
> parameters (e.g. txId,user, diagnostic-contex-id etc.) at runtime.
>
> So, basically I was thinking of producing some perf-related log-records
> to wls-log-files using wls-logging-framework-apis from my AOP advise,
> and then reuse rest of the above-mentioned stuff.
>
> As part of my wishful thinking, it would be nice to have some in-built
> AOP support , so that I dont have to do the AOP-specific
> jvm-configuration myself. Similar to what already exists for
> TPTP-Profiler.
>
> prasen
>
> Paul Slauenwhite wrote:
> > Hi Prasen,
> > Currently, we do not have any direct support for Aspect Oriented
> > Programming instrumentation in TPTP. However, analogous to all logging
> > facility support (Logging Agent and Common Base Event) TPTP provides
(e.g.
> > Java Logging, Log4J and Commons), the logging facility is independent of
> > this support and the tooling (e.g. correlation). As such, when
incrementing
> > your code with AOP instrumentation, ensure Common Base Events are logged
to
> > an XML file, for instance. Then import the Common Base Event XML file
into
> > the TPTP workbench. Alternatively, in your AOP instrumentation, write
the
> > Common Base Event (XML) log records to the
> > org.eclipse.logging.core.LoggingAgent and attach to the named
LoggingAgent
> > using the TPTP workbench (see the JSR_047 or Apache Commons samples).
> >
> > Paul
> > <user@domain.invalid> wrote in message
news:d334ef$qd8$1@news.eclipse.org...
> >
> >>I want to use AOP to create log-records (using TPTP framework), and then
> >>use log-correlation to show them in UI.
> >>
> >>Is there any in-built support of AOP in TPTP ?
> >>
> >>prasen
> >
> >
> >
Re: AOP and tptp [message #15137 is a reply to message #14450] Mon, 11 April 2005 23:21 Go to previous message
Scott E. Schneider is currently offline Scott E. SchneiderFriend
Messages: 8
Registered: July 2009
Junior Member
Marius Slavescu wrote:

> Hi Prasen,
>
> We don't have support for real AOP, although we have Probekit which allows
> you to build and run pretty complex probes that instrument staticaly Java
> class files or JARs.
>
> You may want to take a look at the Probekit documentation in TPTP 4.0 help
> (under Collecting Runtime Data With User-Defined Probes).
>
> Marius
>
> <user@domain.invalid> wrote in message news:d337c7$ukk$1@news.eclipse.org...
>
>>Thanks Paul.
>>
>>Actually I am in the process of writing a log parser/correlator for
>>wls-log-records. The correlation logic will based on some configurable
>>parameters (e.g. txId,user, diagnostic-contex-id etc.) at runtime.
>>
>>So, basically I was thinking of producing some perf-related log-records
>> to wls-log-files using wls-logging-framework-apis from my AOP advise,
>>and then reuse rest of the above-mentioned stuff.
>>
>>As part of my wishful thinking, it would be nice to have some in-built
>>AOP support , so that I dont have to do the AOP-specific
>>jvm-configuration myself. Similar to what already exists for
>>TPTP-Profiler.
>>
>>prasen
>>
>>Paul Slauenwhite wrote:
>>
>>>Hi Prasen,
>>> Currently, we do not have any direct support for Aspect Oriented
>>>Programming instrumentation in TPTP. However, analogous to all logging
>>>facility support (Logging Agent and Common Base Event) TPTP provides
>
> (e.g.
>
>>>Java Logging, Log4J and Commons), the logging facility is independent of
>>>this support and the tooling (e.g. correlation). As such, when
>
> incrementing
>
>>>your code with AOP instrumentation, ensure Common Base Events are logged
>
> to
>
>>>an XML file, for instance. Then import the Common Base Event XML file
>
> into
>
>>>the TPTP workbench. Alternatively, in your AOP instrumentation, write
>
> the
>
>>>Common Base Event (XML) log records to the
>>>org.eclipse.logging.core.LoggingAgent and attach to the named
>
> LoggingAgent
>
>>>using the TPTP workbench (see the JSR_047 or Apache Commons samples).
>>>
>>>Paul
>>><user@domain.invalid> wrote in message
>
> news:d334ef$qd8$1@news.eclipse.org...
>
>>>>I want to use AOP to create log-records (using TPTP framework), and then
>>>>use log-correlation to show them in UI.
>>>>
>>>>Is there any in-built support of AOP in TPTP ?
>>>>
>>>>prasen
>>>
>>>
>>>
>
>

In the future, I would be happy to see AspectJ being used in appropriate
places within TPTP -- there has been numerous occassions where I had
thought aspects would solve a problem more elegantly than the non-aspect
way.

We should investigate what it would take and if it would be practical
(and possible) to support and use AspectJ appropriately (build process,
environement, etc) in future versions of TPTP. For example, I think
aspects would be a good fit for certain parts of the test execution
engine where execution progress monitoring and logging is required.

-Scott E. Schneider
IBM Rational, Raleigh, NC
Previous Topic:Help for start
Next Topic:TPTP and Eclipse 3.1M6
Goto Forum:
  


Current Time: Thu Apr 25 05:18:31 GMT 2024

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

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

Back to the top