I misspell, sorry
I mean from an EnterpriseJavaBean running in a container to know who is calling it.
It would depend on the protocol that you are using to connect. Lets say if you are accessing via HTTP then you could intercept HttpRequest's request.getRemoteAddr() to get the IP.
Ohhhh! I don't think it's possible for bean to intercept IP of client m/c that invoked it because client access is intercepted by the container. You may need to refer to your vendor documentation, for whether it provides such method....... Anyways, if you really get the answer to it.. do respond.