Hello,
I have a
JSF application that access a stateless session bean exposing all the business logic interface ...
Today, I receive a new requirement: log all operations requested to this bean with the user id, time and so on.
I see two ways for doing that:
1 - I pollute the session bean interface by adding the user id parameter in each method (I do not like pollution, but I can stay stateless);
2 - I use a statefull session bean that stores the user id passed at the construction (statefull only for remembering user id is perhaps overkill).
I am sure you have plenty of good advices !
Thanks,
Olivier