मैं जब मैं isundermaintanace
true
गुजर रहा अंत में क्रियान्वित नहीं My application's under maintanace module
System.exit() unexecutable परिणाम अंत में ब्लॉक
try {
if (isUndermaintanace) {
System.exit(1);
} else {
prepareResources();
}
} catch (Exception e) {
printStack(e);
} finally {
cleanResources();
}
पर काम कर रहा हूँ।
मुझे क्या याद आ रही है? क्या ऐसा करने का कोई और तरीका है?
शायद एकमात्र चीज जो आप कर सकते हैं वह है 'System.exit (1)' को अपने ऐप को किसी अन्य तरीके से बंद करने के लिए। अकेले पहले वाक्य के लिए –