The log interceptor already does some
basic call logging when enabled.
You could always write your own interceptor to perform
the logging required.
this assume all requests use JRMP.
hi, I have the same problem.
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.
The only way to do this across different protocols
is to write a client interceptor (JBoss3 only).
The client interceptor can retrieve the client host
name (probably during static initialisation)
and then add it to every invocation object sent.
The server's log interceptor can then retrieve it.
String client = (String) mi.getValue("ClientHost");
Again, this will only work when the client is a java
client. A c++ corba client cannot run the client
Also, this will show the server hostname when accessed
Thank a lot, seens it could work from one side, from another its not as simple I thought it could be.
I'll try to write that client interceptor, and hopes it will not tak much time and will work.
Maybe somebody has another idea?
Anyway thanks again,
PS I'm sorry for posting this on two forums.