i deploying war file glassfish , know if possible have file can have properties stored in them can accessed within web methods. catch change file business requests change wihtout having recompile. store in db or have system properties on glassfish know if file way possible.
i have read these seems have recompile?:
load properties file in servlet/jsp
loading properties file in init() of servlet without using context-param tag in web.xml
sure can. can load properties @ startup , note modification time file; can reload properties again when modification time has changed, i.e. when has edited it. check , reload can done using background thread or on access, take care handle synchronization simultaneous requests compete each other.
i'd keep file outside of glassfish , point using system property or context parameter, can edit properties file glassfish has extracted war file.
Comments
Post a Comment