Hi,

> On 24 Aug 2016, at 09:11, Edward Knyshov <edv...@gmail.com> wrote:
> 
> Hello.
> How can I execute some java code when xwiki is about to shut down?

Option 1:

XWiki is a java app so all you can write some java class with a shutdown hook, 
something like Runtime.getRuntime().addShutdownHook.

Then you package your class in a jar and drop it in WEB-INF/lib.

Option 2: 

You write an XWiki component and implement the Disposable interface.
See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HComponentDisposal

Thanks
-Vincent


> Thanks, Edward.
> 
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to