I have a need to deploy the 2 application ear into one JVM. However, these 2 application ears (Let say A and B) have used the same java bean.
Since both callers is the same, it seems that there is no way for the java bean to distinguish it is being called in Application A or Application B. Is there any way to know which application the java bean is serving?