Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] cflowid generation and use

Hi There,

Are you needing to weave distributed calls (between processes/across VM's),
or just weave into different component types deployed in the same container?
Using cflow with the latter works well as long as you deploy your aspect at
the right level of the ClassLoader hierarchy (i.e., as an application-level
library). Doing the former takes a bit more work (you can add a wrapper
invocation method with an additional parameter to automatically thread the
data, use stateful services with a handshake protocol, or have the API's
explicitly include the parameter).

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of eight ball
Sent: Friday, March 17, 2006 10:50 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] cflowid generation and use

Hello all,

I'm working in a project that involves integrating some legacy j2ee 
application into a larger system. It's a requirement for this project (and 
for any project i would presume...) that logs should provide traceability 
via some unique identifier common to all the calls inside a call flow 
(containermanaged or not). The legacy part already uses log4j for logging, 
as will the new parts.

I've been away (maybe for too long) from aspectJ, and would appreciate if 
anyone could give me any hints on the ability of aspectJ to weave both the 
initial generation of the unique cflow id in the servlet layer and its use 
in all the log statements both in the new and (most important) legacy 
components. This is, as stated above a J2EE environment, containg both 
servlets, web service endpoints, ejbs and POJOs.

Any help would be higly appreciated.
Thanks.

_________________________________________________________________
COPA 2006: Enfeite o seu MSN Messenger de verde e amarelo! 
http://copa.br.msn.com/extra/emoticons/

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top