Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Anybody know how to pass cflow information across thread borders?

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Beaumont, Serge wrote:
> I wonder if anyone knows a way to uniquely identify a cflow, so
> that I could store that id (and extra data) somewhere, so the
> aspect lower down the stack can retrieve the data? Since I'm in an
> EJB context, maybe somebody knows a J2EE "context thingy" that is
> constant, even across remote calls?    
Hello.
People may correct me if I am wrong, but as far as I can tell, you
will certainly run into trouble using standard AspectJ because (I
bleieve) in AJ any aspect instance is thread-local and that might
cause what you are seeing. I see two possible solutions to your
problem:

1.) Remote pointcuts http://portal.acm.org/citation.cfm?id=976274
(maybe)
2.) Store aspect-specific state using an inter-type declaration on a
*non* thread-local object (use synchronization if appropriate!).

HTH,
Eric

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQgh1SswiFCm7RlWCEQJOXQCfdv3Q48mZuRWHY/mAKWmRitrk+sQAoJRx
9BvpEjTCiEG+R+hSKD4lFT+j
=T0oP
-----END PGP SIGNATURE-----




Back to the top