I wish to get the name of the managed server in which my code is running.
It looks like the MBean, ServerMBean is the way to go.
But I am dismayed to find that you need to "login" with principal and credential
(username and password) to lookup th MBeanHome.
I think this seems too much for accessing an object already local to the server
on which my code is running.

Is there a better way to do this?
Or what is the best way to get the name of the managed server in a cluster dynamically?

Thanks
Chandra