4 Replies Latest reply on Aug 31, 2002 7:25 PM by Marcin

    How to log remote access

    Eric Jain Newbie

      How does one log remote access to session beans (timestamp, bean, method, user, host)?

      Currently I have to look up the user from context.getCallerPrincipal().getName() each time I write a log statement (log4j), no idea how to determine the remote host. But surely there is a more elegant (and efficient) way to accomplish this basic task?