I suppose this might not be possible but just in case...
We have a frontend Java application that communicates with a (ours as well) backend application through Hessian. For logging and auditing purposes we need to pass the user_id of the User that is logged in (in the frontend) to the backend. An obvious solution would of course be to add a String parameter to all method calls but that's a lot of work and not very clean.
Would there be a way to intercept the call, decorate it with the user_id (retrieve from the Session) and on the backend to get that user_id (and then set it on ThreadLocal or such)?