I don´t know of anything that has to be cleaned up so probably we can do
System.exit.
Christian
Am 17.06.2012 21:57, schrieb Ioannis Canellos:
System.exit is of course a way to make sure you get a fast exit. The
problem is that if something is to be cleaned up in the background it will
simply be cut off.
So the cleaner way is to not use System.exit and make sure our background
threads terminate fast. This can be a bit tricky though :-)
Totally agree, the question is do we care if the threads are cleaned up
properlly when using bin/shell. From what I understand the purpose is to
execute commands outside OSGi, so that they can be used in scripts etc. In
such case exiting fast seems really important.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com