Open johno1985 opened 6 years ago
Hello,
What is your project (is it a spring boot project?) Do you see in the log the starting of audit4j ?
Regards Franck
Hi Franck
Our project is a servlet 4 application. That's right, no rest frameworks are currently being used! Horror!
Kind regards
Jonathan
On Sat, 23 Jun 2018, 15:03 Franck Benault, notifications@github.com wrote:
Hello,
What is your project (is it a spring boot project?) Do you see in the log the starting of audit4j ?
Regards Franck
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/audit4j/audit4j-core/issues/78#issuecomment-399680553, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkJAVCVsQirEtRNgf91mqTGA3C97Yzoks5t_kqXgaJpZM4UzvSb .
Hello,
I have faced the issue how to integrate the @Audit annotation in environment without spring.
I have put a simple example using Aspectj to integrate @Audit annotation in audit4j-demo (audit-demo-annotation-int) https://github.com/audit4j/audit4j-demo/tree/master/audit4j-demo-annotation-int
But one additionnal point please avoid to audit a method like void handleRequest(HttpServletRequest request, HttpServletResponse response) the input object are quite complexe and I am not so sure that you will have good results
Regards Franck
Thanks Franck. Quick question, if I were to use Jersey REST, would this annotation work with their default DI mechanism, HK2?
Kind regards,
Jonathan
On Sun, 24 Jun 2018 at 21:18, Franck Benault notifications@github.com wrote:
Hello,
I have faced the issue how to integrate the @Audit https://github.com/Audit annotation in environment without spring.
I have put a simple example using Aspectj to integrate @Audit https://github.com/Audit annotation in audit4j-demo (audit-demo-annotation-int)
https://github.com/audit4j/audit4j-demo/tree/master/audit4j-demo-annotation-int
But one additionnal point please avoid to audit a method like void handleRequest(HttpServletRequest request, HttpServletResponse response) the input object are quite complexe and I am not so sure that you will have good results
Regards Franck
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/audit4j/audit4j-core/issues/78#issuecomment-399784538, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkJAft04AvuWaXx-JLLbRn_1nhrKfoVks5t__QtgaJpZM4UzvSb .
Version 2.5.0
I have added the @Audit annotation to one of my controller methods and have implemented the MetaData interface but no audit events are triggered