I was trying to create RMI Implementation for the interface, where, once the client invokes a servlet, it gets a handle to the RMI Implementation object.

My Problem, is when there are multiple users trying to invoke single RMI implementation object, I would like to have anonymous inner class in each method, so that, every time the method gets a call, it will be easy to handle my tasks (authentication, data access JDBC Calls, Unique id, and other stuff)

any help on this is of great help to me.