The answer you entered to the math problem is incorrect.
Alexander (not verified)
Wed, 1969-12-31 20:00
Thank you, John, this is an excellent primer, it helped me to find my way in creating a custom service. However I would point out that you are overriding all the methods (as suggested by Eclipse) which actually breaks the functionality put into the ServiceMBeanSupport class.
As they say at JBoss Wiki, we only need to override four methods:
createService()
startService()
stopService()
destroyService()
And, yes, getName() should also be overriden.
If we do so, the startService() gets invoked by the server at the appropriate time. Otherwise, it doesn't get invoked.
Thank you, John, this is an excellent primer, it helped me to find my way in creating a custom service. However I would point out that you are overriding all the methods (as suggested by Eclipse) which actually breaks the functionality put into the ServiceMBeanSupport class.
As they say at JBoss Wiki, we only need to override four methods:
And, yes, getName() should also be overriden.
If we do so, the startService() gets invoked by the server at the appropriate time. Otherwise, it doesn't get invoked.
Thank you again for your valuable help.