1 Reply Latest reply on Aug 31, 2002 10:20 AM by Adrian Brock

    getting client host name

    Marcin Newbie

      I need to log all access to EJB in my application, and for this purpose I used LogInterceptor, which works fine, but do not provide any information about client host.

      I have added java.rmi.server.RemoteServer.getClientHost()
      call to LogInterceptor, and all seems to work fine, but only if I call EJB session bean method (I use logging for this purpose) from stand alone client. When I access the same bean from .jsp page I get error ServerNotActiveException.

      So in what way should I get ClientHost in that case.

      Thanks for any help.