I didn't want to get the class name of the POA and the class generated from POA as I know that they are generated by the IDL compiler. What I want to get is the class name of the impl class implementing a Remote interface...I don't see how you can get any of it. What you get is what OMG provide in the API.
I created an interceptor which will intercept all RMI IIOP calls and I want to know where each call is coming from.And you do, but in terms of the IDL names, not the Java names. You are completely disconnected from the Java at this point. You are in the middle of a CDR/GIOP conversation only. Whatever the interceptor is doing, e.g. logging, it has to do in terms of what's in the IDL, basically the service name.
I have one more query. The functions like send_request, send_poll, receive_reply etc. in the Interceptor can easily intercept the call and get some information in the call. Can I terminate the call when some sepcial conditons met?You can with a ServerInterceptor, see send_exception(). It's not there in the ClientInterceptor so it appears not, but you should have to look at the OMG specifications at www.omg.org to be sure about all this. The Portable Interceptor Specification tells all. I read it a few years ago, cannot remember the details.