Does spring mbean and mbean received with jconsole are different?

195 Views Asked by At

I have application created with Spring and has access through jmx to set some parameters. The problem that when I access by jconsole - all works, when access from my graphic interface - doesn't work. In debugger I checked that invoked the same method with the same parameters. Does it possible that Spring privides different instance of bean that I receive from jconsole? Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

The instance is the same (unless your bean is prototype-scoped)

You can verify that by printing the object's toString() to the console and compare the values after @.