Tried my OpenEJB embedded application as the server (only openejb
container). Wondering How I can collect information about the
requester like the IP. This strictly for audit purpose and also to
prevent users from making attacks. Thread.currentThread().getName()
seems to be the only way people could actually sniff the request ip on
ejb. I tried that on OpenEJB but no luck so far. any advice ?
@Stateless
public class HelloBean implements Hello{
public String sayHello(){
System.out.println("Requestor "+ Thread.currentThread().getName());
return "Hello World!!!!";
}
}