-
1. Re: Problem deploying MBean
jaysensharma Mar 7, 2013 12:29 AM (in response to niteshmehta)Hi,
If you will provide a Setter method like "
setId
" then "Id" will be treated as an Attribute of your MBean.Same way is you provide a Getter like "
getServiceId
" then "ServiceId" will be considered as an Attribute to your MBean. So if you just want to provide methods (operations) inside your MBean then do not prefix any method with "set" or "get" keywords.Thanks
Jay SenSharma
-
2. Re: Problem deploying MBean
niteshmehta Mar 7, 2013 11:29 AM (in response to jaysensharma)Thanks for reply, but I think It was working with jboss 5.x. and is it as per specifications?
-
3. Re: Problem deploying MBean
jaysensharma Mar 7, 2013 2:52 PM (in response to niteshmehta)http://docs.oracle.com/javase/7/docs/technotes/guides/jmx/JMX_1_4_specification.pdf
2.1 Definition
(Page-39)
The Java class of a standard MBean exposes the resource to be managed directly
through its attributes and operations. Attributes are internal entities that are exposed
through getter and setter methods. Operations are the other methods of the class
that are available to managers. All these methods are defined statically in the MBean
interface and are visible to an agent through introspection. This is the most
straightforward way of making a new resource manageable.