I need to generate some sort of notification when attributes are changed on certain entity beans. The notifications need to contain the identity of the authenticated user and the old and new value of the attribute (or just the new value would be OK). (I'm running 3.0.7 jboss)
I'm not sure how I can do this. We are generally using value objects to set the values in the entity bean so more than one attribute may change at a time and we are using xdoclet to generate the various interfaces and support classes. We may be able to hand code the xxxCMP class that is currently generated from the bean class and add the functionality to the setValue method(s) but that gives me another file to maintain which I'd rather be generating. It also means I miss direct calls to the setXxxAttr() methods. I could use triggers or some other database centric mechanism but would rather not (not portable, more to maintain and break). Does anyone know if this is supported by the platform in any form or if xdoclet can be coerced into generating the required code? Using aspects could do it very neatly by wrapping each setter of the entity beans in an aspect that reads the old value, calls the setter and then generates the notification for me. I could do this with aspectJ but I'm not sure about the new 4.0 jboss aspects. any suggestions welcome. thanks, brian wallis... ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user