Or, there is already a nice hook provided for you.
In the form of Bootstrap interface - see AbstractServerImpl.
| // Do the bootstraps in reverse order
| for (Bootstrap bootstrap : startedBootstraps)
| {
|
Thread.currentThread().setContextClassLoader(bootstrap.getClass().getClassLoader());
| try
| {
| bootstrap.shutdown(this);
| }
| catch (Throwable t)
| {
| log.warn("Error shutting down bootstrap: " + bootstrap, t);
| }
| }
|
Simply implement your behavior in some Bootstrap impl, and add this bean to
bootstrap-beans.xml.
It will get automatically picked up by ServerImpl, and added to the list of all
bootstraps.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131784#4131784
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131784
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user