Alternatives to loading .properties files for every request

I am just starting for a company, and they loading a bunch of .properties files for every request. I've told them that according to JEE specs, using the file system like that is a violation, as it's not scalable. I've suggested the following alternatives:
1. Load a file once, in a static initializer, or something to that effect. Re-start the app if a change needs to be made in properties.
+: few changes
-: requires a new war/ear to make a change
2. Put properties that are truly variable in a database record.
-: requires DB schema change.
3. For instance, i've though about using something like jconsole to change an mbean property, and then web apps using that property.
4. Define a single web app that exposes an EJB/JMS/RMI object which serves properties to other web apps. If a change is needed, only 1 web app needs to be re-started, although it would still have to be re-packaged. Perhaps this app could load this stuff from the DB.
5. Have a properties service, and expose it as an RMI object. If a change needs to be made on the fly, use rmi to make the updates.
I'm leaning towards a combination of 1, 5, and possibly 4.
I would like to know what other alternatives might be available.
Thanks.

I am just starting for a company, and they loading a
bunch of .properties files for every request. I've
told them that according to JEE specs, using the file
system like that is a violation, as it's not
scalable. well, it's just boneheaded that's all
I've suggested the following alternatives:
1. Load a file once, in a static initializer, or
something to that effect. Re-start the app if a
change needs to be made in properties.that's what most people do
2. Put properties that are truly variable in a
database record.well, databases don't normally hold config info, but you can do what you want
-: requires DB schema change.
3. For instance, i've though about using something
like jconsole to change an mbean property, and then
web apps using that property.
4. Define a single web app that exposes an
EJB/JMS/RMI object which serves properties to other
web apps. If a change is needed, only 1 web app needs
to be re-started, although it would still have to be
re-packaged. Perhaps this app could load this stuff
from the DB.doing EJB or RMI for getting properties sounds like overkill in the extreme to me

Similar Messages

  • How can load properties file for one time and use in entire application

    Hi folks,
    I dont want to read properties file every time , and want to get property value in any servelet or jsp page.(means i want to read only property file only for once and want to get value in any where ) , how to do this.
    Message was edited by:
    RajeshwarReddyT

    means we have to read file every time Know but i dont
    want to be happen that ??? No you don't . You read the file once. You store it in the hashmap. Then you hand that hashmap to whatever class needing the data.
    getProperties() returns the hashmap, doesn't read the file.
    Maybe I should have called the method getMap or something.
    Message was edited by:
    karma-9

  • Specify filter for every request except one

    Can a in me web.xml file specify that a filter should be used for every request except one.
    I can write;
    <filter-mapping>
         <filter-name>MyFilter</filter-name>     
         <url-pattern>/*</url-pattern>
    </filter-mapping>
    to use it on every request. But how do I exclude one specific resource that shouldn't go though the filter.
    I know that this may not be exactly the right forum but i'm really lost. I appreciate all suggestion.
    Thanks / Daniel

    This is the right forum, but unforutanetly you cannot exclude some urls.
    I would suggest you handle that logic in the filter itself.

  • WSAD : loading properties file from EBJ project

    Hi,
    I am trying to load properties file contains database parameters into my EJB project. I am using WSAD as IDE tool
    can you please help me with following.
    1. where to place the .properties file physically ?
    2.how to load the file to my EJB/DAO classes
    3.can i use the same location to place log4j.properties file as well ?
    I have tried doing in different ways but none is working.
    thank you
    Narendra

    got it working , for information pl go to the following page and section "Using log4j in an EJB Application"
    i have followd same steps for loading my properties file .
    http://sys-con.com/story/?storyid=43413&DE=1

  • Cannot get Membership Provider with name RoleProvider. The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process.

    I am trying to create a web application that uses AD LDS as its authentication provider. I have followed all the steps and verified all the web.config files, but I receive the error below:
    Cannot get Membership Provider with name CustomRoleProvider. The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process.
    Has anyone come across this error before?

    There seems to be some issues in your web.config files. Please make sure your Web application entries for membership and role provider(at central admin site) are matching with Web.config entries. your error
    "Cannot get Membership Provider with name CustomRoleProvider.
    ", indicating that you may have used role provider name in Membership provider text box or in web.config.
    Also please make sure that you have correct entries in all 3 web.config files - Central Administration , Security Token Service (STS), Web application .
    Please refer  -
    Forms Based Authentication (FBA) in SharePoint 2013
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Error when creating files for transport request SAPK-700BGINPLMWUI

    Hello experts,
    We're upgrading our 46c System to ERP 6.0 EHP4.
    In Phase  EHP_INCLUSION we get the following error Message: Disassembling package queue failed, rc = "2", reason = "Error when creating files for transport request SAPK-700BGINPLMWUI"
    We've already checked the SAINT version; Upgrade Fix, SAPCAR version. We've checked our TMS as well and everything seems  O.K.
    Any help would be really appreciated!!!
    Complete Error message:
    EhP component PLMWUI, 700                                                                               
    Looking for SAINT package for 'PLMWUI' ...                                                                               
    R3upReadNewPackages:                                                                               
    patchType='U', langVect='DEC'                                                                               
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "spda_read_new_packages" by RFC                                                                     
      ismovesVersion='0'                                                                               
    R3upReadNewPackages: exit: rc=0                                                                               
    ... No matching package found.                                                                               
    R3upReadNewPackages:                                                                               
    patchType='I', langVect='DEC'                                                                               
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "spda_read_new_packages" by RFC                                                                     
      ismovesVersion='0'                                                                               
    R3upReadNewPackages: exit: rc=0                                                                               
    Found: name = 'PLMWUI', release = '700', package = 'SAPK-700BGINPLMWUI', type = 'AOI'                                  
    ... Matching package found: 'PLMWUI','700','SAPK-700BGINPLMWUI'                                                             
    (trc) R3upPatchDisassembleQueue: 1 package queue entries                                                                    
    (trc) R3upPatchDisassembleQueue: force=YES                                                                               
    (trc) R3upPatchDisassembleQueue: 1 packages will be disassembled                                                            
    Starting disassembling package queue                                                                               
    Date & Time: 20100319133139                                                                               
    Starting RFC Login to: System = "X05", GwHost = "sxt ", GwService = "sapgw00"                                           
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "SPDA_DISASSEMBLE_QUEUE" by RFC                                                                     
    Input table IT_PATQ:                                                                               
    "SAPK-700BGINPLMWUI","000","AOI","PLMWUI","700","SAP PLM Web UI","00"                                                       
    Call of function module "SPDA_DISASSEMBLE_QUEUE" by RFC succeeded                                                           
    Logging off from SAP system                                                                               
    Date & Time: 20100319133139                                                                               
    Disassembling package queue failed, rc = "2", reason = "Error when creating files for transport request SAPK-700BGINPLMWUI"

    Hello Anthes,
    Please Check the things in following sequence :
    1.Use latest SAPehpi, R3trans and tp versions.
    2. users/group authorization issue and/or ownersip limitations (set 777) .Reboot the server to make sure, that the authorisations are updated and there is no lock on a file in the EHPI dir.Repeat the phase.
    Folders where permissions should be 777 are Upgrade directory, Data Directory, Cofile directory and .../EPS/in.
    3. Source file corruption can be ruled out by execution
    R3trans -l /usr/sap/<SID>/..../abap/data/R-700BGINPLMWUI.SAP (The data file corresponding to the Package which is giving error). Check if this ends fine.
    Note 2050
    4. Confirm that your transport tool is 'healthy' by testing it in STMS. In SPAM in client 000 use the function Disassemble package and enter the package <Package name>.
    5. Try to update the kernel if it not helps.
    Best Regards
    Niraj

  • To genrate individual file for every record.

    Hi Experts,
    I am receiving a message with multiple records. I need to generate individual files for every record.
    How can it be done?
    Thanks
    Karthik

    Bhatia,
    FCC is file content conversion. If your sender communication channel is file and the file is any fixed length or with any separator then you can use this option in your file sender communication channel.
    Regards,
    ---Satish

  • Exchange profile error: dbconnect.prop: failed to load properties file .\dbconnect.properties

    All,
    We are using PO 7.4 with SP5, and we have an issue while accessing URL Exchange profile page (http://<host:port>/webdynpro/dispatcher/sap.com/com.sap.xi.exprofui/XIProfileApp) it throw's the below error.
    dbconnect.prop: failed to load properties file .\dbconnect.properties
    dbconnect.prop: failed to load properties file
    Did some one seen this before and have resolved ? Any help is highly appreciated.
    Thank you, Pranay

    Though below note is not applicable to you, i would suggest you to check if the destination is created by the configuration wizard? If not you can create one and see if it helps.
    Create Java RFC destination XI_EXCHANGE_PROFILE manually: Navigate to http://[host]:[port]/nwa --> Configuration --> Infrastructure --> Destinations. Create the RFC Destination with PILDUSER as logon user.
    1525193 - PI CTC: Exchange Profile Access after (EhP) Upgrade

  • Failed to load configuration file for the workflow

    There are two of us who have full control on our Sharepoint 2013 site. I'm able to create workflows and publish them fine. The other user is able to create workflows, but he gets an error when trying to run them. I  tried opening his workflow and got
    the error "Failed to load configuration file for the workflow."
    Any ideas?

    Hi Carltonw1,
    Based on your description, I recommend to verify the things below:
    Clear the SharePoint Designer cache and then open the workflow.
    Ask the user to open the workflow in SharePoint Designer and check if the workflow contains error.
    Ask the user to create the same workflow and associated with another list to see how it works.
    Check the ULS log for more detailed error message.
    To reproduce this issue, could you please provide the detailed steps in the workflow for further research?
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Fail to load properties file

    Hi
    I can't load properties file. Please help!
    my setting is listed as follows:
    My properties file "kpggc.properties" is stored in the path : W:\kpggc\KPGGCWorkspace\KPGGCProject\src\hkpost\kpggc\client\resources
    I have already add the above path into the classpath and my application is a standalone application. I use the following codes to load the "kpggc.properties" file:
    private static boolean getProperties()
    Properties properties = new Properties();
    try
    properties.load(new FileInputStream("kpggc.properties"));
    catch (IOException e)
    System.out.println("Cannot find the properties file 'kpggc.properties'");
    catch (Exception e)
    System.out.println(e.getMessage());
    After running the above method, error message "Cannot find the properties file 'kpggc.properties'""always show.
    Thanks in advance.

    there is a way. u need not give the complete path of ur file.
    include the path of the properties file in ur classpath.
    in ur code, do the following:
    (inputStream and properties are declared before this code.)
    inputStream = ClassLoader.getSystemResourceAsStream(fileName);
    properties.load(inputStream);
    regards

  • Where can i find .properties file for jco connection?

    For jco connection to SAP, we need .properties file. Is this file already contained in Exchange Profile or somewhere??
    If yes, where can i find .properties file for jco connection or what is the path to this file?
    OR, do we have to create manually??
    Any help is appreciated.
    Thanks.
    Karma

    Hi Karma,
    Please take a look at these..
    Where to set up the JCO connection?
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/42e13d82fcfb34e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/bc/42e13d82fcfb34e10000000a114084/content.htm
    cheers,
    Prashanth

  • [svn:fx-trunk] 8056: More updated project properties files for the sparkTest project.

    Revision: 8056
    Author:   [email protected]
    Date:     2009-06-22 12:13:58 -0700 (Mon, 22 Jun 2009)
    Log Message:
    More updated project properties files for the sparkTest project.
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.actionScriptProperties
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.project

    Thats good news.

  • How can i write properties file for Hindi font

    Hi All,
    i'm using jdev 11.1.1.5.0
    in my use case i have worked on internationalization where i want to use hindi font
    like this link -
    Majid Hussain: Internationalization of ADF 11.1.1.3 Applications
    as in above post majid used german language and write properties file for german language(which is using english character).
    but my problem is that i want to use hindi language
    so how can i write propery file which support hindi font.
    Manish

    Hi Manish,
    We also had same requirement where we need to show indian local language(Hindi ,Bengali and many more ).
    We had implemented following approach and perhaps it will helpful for you.
    1-First we changed the encoding value in jdeveloper.
       go to jdeveloper --> tools --->preference-->encoding , select to UTF8
    2-We used to get the properties and it's translated value from business and then we were manually put these pair into related resource bundle.
    And using this we were able to implemented multilanguage support.
    Thanks
    Prateek

  • Client handler is invoking for every request.

    Hi EveryOne
    i am new to JAXWS welogic.
    i have a web consumer/client, while sending the request from client the handler is invoking for every request. I could not able to restrict.
    i would like to intialize only once and need to use that instance like (init() method initialization). How to resolve this issue.
    can anyone come across a solution for JAX-WS in general? Please throw your thoughts here.
    Any help in this regard would be appreciated.
    Thanks & Regards
    Suresh

    Two common reasons for this are:
    (1) Problem with the system clock: date, time, or time zone differs substantially from the rest of the internet
    (2) Firefox not set up to work with your security software that filters your web traffic
    In order to filter secure traffic, your security software needs to present "fake" certificates to Firefox so it can be the "man in the middle" and see everything sent to and from the site. Firefox distrusts the fake certificates until instructed otherwise.
    Do you use any software with that kind of feature? On Windows, products with that feature include avast! 2015, Bitdefender, ESET, and Kaspersky.
    A less common problem is malware performing a "man in the middle" attack.

  • If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    No it doesn't. Albums simply reference the photos in the Library. A single shot can be in 100 albus and use no extra disk space at all.
    If you have the same shot in two Events then yes, the file is duplicated.
    When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.
    The Finder doesn't really understand the iPhoto Library. It's quite possible for the iPhoto Library to contain many files with the same name. The Library also contains different versions of the same shot - thumbnail, originals and edited version. This is normal.
    Regards
    TD

Maybe you are looking for

  • Left over of Sales Order creates new planned order of whole batch

    Hi Gurus, We are using planning without Assembly strategy (52) and Sales order is created in our sales plant and Purchase order from sales plant creates STO on manufacturing plant which than produces material using process order. Now sales order says

  • Converting string to float number

    Here's what I'm trying to do. The user types a number, such as 12.011, in an input box. I want to check to see if the number they typed is between two numbers, such as 12 and 12.1. Therefore, I want to convert the string in the input box to a float n

  • BSEG table : Runtime error

    Dear Experts,                          Table BSEG is  throws time-out error, how to solve this error. regards rajakarthik

  • IPhoto calendar problem ordering

    I've assembled a calendar in iPhoto.  previewed it.  But nothing happens when I click on checkout after buy calendar.

  • IDVD 6

    I am new to iDVD 6 having just upgraded from iDVD 5. I have just taken 211 photos from iPhoto, created a slideshow using the new Wizard in iDVD, I included the theme and the slideshow of 211 pictures, included some audio and then burnt the DVD. When