I have written an aspect that declares a field on an
interface (TimestampedEntity):
private Date TimestampedEntity.filterTime;
This field is populated by an advice method:
after(TimestampEntityManager manager) returning
(TimestampedEntity entity): callFind(manager)
{
//
set filter time
Date
filterTime = manager.getEffectiveTime();
if
(entity != null)
entity.filterTime
= filterTime;
}
This is all running in a JBoss application server and works
fine server side. However when the TimestampedEntity objects are serialized and
sent to a remote client the filterTime field is null. I am assuming this is
because the serializer is not picking up the intertype declaration as a serializable
field. Is there any way around this (I have tried declaring the aspect as
serializable but this causes an error in eclipse).
Chris Howe-Jones
BA
Senior Engineer
eMail: chris.howe-jones@xxxxxxxxxxxxx
TecSphere Ltd
Centre for Advanced Industry
Coble Dene, Royal Quays
Newcastle upon Tyne NE29 6DE
United Kingdom
|
|
Direct Dial: +44 (191) 270 31 08
Fax: +44 (191) 270 31 09
http://www.tecsphere.com
|