The code should be thread safe, yes. If you decide to make it thread safe with synchronized, then it is up to you.
MBeans invoked through JMX will be invoked by the container using their own threads, separate from your own code threads.
source
share