Which version of JBoss AS? Can you explain a bit more about your usecase? Why do you want to know whether the client is remote or local?
We are using JBoss 4.3.0.GA.
The usecase is that we need to measure the time a method call takes with all interceptors attached und we also log this time to a logfile. I think the only reason we need to know if it is a local or remote call is that we could see it in the logfile . My supervisor said i should figure out if it is possible to get this information and i have tried a few things like to get a SessionContext in my Interceptor class to get the InvokedBusinessInterface, but this didn't work out, or to get my needed information from some metadata stored with the call ...