A definition of Custom Service in WebSphere is as follows:
"To define a hook point to be run when a server or node agent starts and shuts down, you develop a custom service class and then use the administrative console to configure a custom service instance. When the application server or node agent starts, the custom service starts and initializes."
see the link for detail:
Does JBoss provide the similar feature? If does, where can I find related documents?
Look around for ServiceMBeanSupport and jboss-service.xml