Suppose I have a statefull session bean B, which creates some POJO A. How can I inside one of the A's methods obtain the IP(and hostname) of the Java EE server which manages the session bean B?
PS. If this is not possible, then how could I do the same in B itself?