Re: [Alembik-devel] Moving types.properties out from WAR.
Status: Beta
Brought to you by:
jacques_aka_jd
From: Daniel A. <da...@ki...> - 2011-05-19 11:17:27
|
Hi Anil, It makes sense. You can do it as VideoCapabilities way: File folder = new File(Configurator.getInstance().getProperty(Property.WURFL_FILE_PATH)).getPa rentFile(); File properties = new File(folder, VIDEO_CONFIG); if (properties.exists()) is = new FileInputStream(properties); else is = VideoCapabilities.class.getResourceAsStream (VIDEO_CONFIG); It looks first for file out of war file, if exists load it, either load from war file. Also you can provide reload method via Admin console to reload the file without restarting the server. Dani _____ De: Anil Jangam [mailto:ani...@pe...] Enviado el: jueves, 19 de mayo de 2011 13:12 Para: ale...@li... Asunto: [Alembik-devel] Moving types.properties out from WAR. Hi Dani, I recommend to move the types.properties file out from the WAR file to simplify the distribution. Today, if we change types.properties file, we have to release the entire WAR file. I checked the code (MimeTypesRepository.java) and this file is read just once and the Properties object is populated. If there is a change in types.properties file, we can just *ship* it alone, instead of WAR file. To deploy, we just load the types.properties file, and restart the server. Just a thought. /anil. DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. _____ No se encontraron virus en este mensaje. Comprobado por AVG - www.avg.com Versión: 10.0.1321 / Base de datos de virus: 1509/3646 - Fecha de publicación: 05/18/11 |