Platinum Solutions Corporate Website


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 again for your valuable help.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2.
The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options