--- Bobby Abraham <[EMAIL PROTECTED]> wrote: > I am wanting to intercept updates to entity beans > attributes both > through the use of the setXXX method and the > setData() methods on the > interface (remote and local) of the entity bean. > > This could be used to generate derived fields on the > bean or implement > an audit strategy.
Nice idea... But nobody thought about it while designing EJB spec. There is ongoing work in AOP - auditing could be just an aspect of class/method. > It this possible with XDoclet, now or with a bit of > effort to make it work ? Everything is possible with a bit if effort. Though in this case "a bit" would be quite large... > I would imagine the generated EntityCMP class would > have to change to > call another method after each set method. I am not > sure of the > implications or even if this is legal according to > the ejb spec. For EJB 1.x it would be possible. In 2.x - not sure. YOur CMP class shall be abstract in relation to setters, and container qill generate them on the fly. regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
