Urgent. How may i update a properties file in execution time?

Urgent, please. How may i update a properties file in execution time? I need to update the file by means of a web page and i need the changes be reflected immediately.
Thanks

Note the update must be made in memory. But i don�t know how.

Similar Messages

  • How may I update the RPD file on obiee 11g

    how can I update my repoistory file to the obiee11g server? -thanks

    Hi,
    Please refer this, http://shivabizint.wordpress.com/2012/05/06/manual-deployment-of-obiee-11g-rpd/
    Regards,
    Dpka

  • How to update MainApplicationResources.properties file

    Post Author: fjaffery
    CA Forum: JAVA
    I am trying to update a key in the MainApplicationResources.properties file in Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\src\com\crystaldecisions\ePortfolio\framework\main\ folder.  After the changes, I have updated the desktop.war file and redeployed but my changes are not getting reflected in the ApplicationResources.properties file in Tomcat\work\Catalina\localhost\businessobjects_enterprise115_desktoplaunch\loader\com\crystaldecisions\ePortfolio folder.  How do I propogate the .properties files changes to the combined ApplicationResource.properties file?
    Thanks.

    I think i have mixed it up :)
    I have looked at it again and believe you are using regular JSP portlets.
    Can you tell what you want to achieve by reading .properties file. Are you meaning the preferences of the portlet or what exactly are you trying to do?
    Reading propertie files is easy:
    // Read properties file.
    Properties properties = new Properties();
    try {
        properties.load(new FileInputStream("filename.properties"));
        String myKey = properties.getProperty("yourKey");
    } catch (IOException e) {
    }Edited by: Yannick.O on 13-Apr-2010 05:52

  • How do I read a properties file in WEB-INF without hard-coding a path?

    Hello,
    How do I read a properties file in WEB-INF without hard-coding a path?
    I tried:
    Properties properties = new Properties();
    properties.load(new FileInputStream("db.properties"));
    driver = properties.getProperty("driver");
    but it cannot find the db.properties file.
    Thanks for the help.
    Frank

    Don't use a File to read those properties.
    Better to use the servlet context and
    getResourceAsStream() method to get the InputStream.
    It'll look for any file in the CLASSPATH. If you put
    that properties file in the WEB-INF/classes directory
    you'll have no problems, even if you deploy with a
    WAR file.Completely agree with this approach. Just have to mention the following for completeness
    according to the API,
    "This method is different from java.lang.Class.getResourceAsStream, which uses a class loader. This method allows servlet containers to make a resource available to a servlet from any location, without using a class loader. "
    So using this method, the resource can be anywhere under your web context, not just in the classpath.
    Cheers,
    evnafets

  • How to give comments in .properties file?

    hi
    can any one tell how to give commens in .properties file
    any thing after first space will be treated as key value pair
    thanks in advance
    bye

    hi
    can any one tell how to give commens in .properties
    fileAny line that begins with a # is a comment in a properties file. These are single line comments.
    any thing after first space will be treated as key
    value pairEh?
    thanks in advance
    byePreemptive welcome.

  • How may load an external (html) file in swf? Anyone!!!!!

    hi all,
        How may load an external html file in swf? such as google.com in a movieclip.
    anyone may help me.........????????

    With Flash, you can't do this.
    Just with FlashBuilder and Air (something like HTMLLoader  , not sure now)
    I mean loading in a movieclip..
    Of course you can open a page to display in a browser.

  • [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.

  • [svn] 3070: Update feature.properties files on BlazeDS 3.0.x branch.

    Revision: 3070
    Author: [email protected]
    Date: 2008-09-03 05:52:17 -0700 (Wed, 03 Sep 2008)
    Log Message:
    Update feature.properties files on BlazeDS 3.0.x branch. I did this on BlazeDS trunk but also needed to do it here. The feature.properties files had references to tests (httpservice,webservice) that have been removed.
    Modified Paths:
    blazeds/branches/3.0.x/qa/features/full.properties
    blazeds/branches/3.0.x/qa/features/httpService.properties
    Removed Paths:
    blazeds/branches/3.0.x/qa/features/nist.properties
    blazeds/branches/3.0.x/qa/features/webService.properties

    bump

  • [svn:bz-trunk] 5125: Update excludes.properties file for BlazeDS/ trunk to exclude tests due to bugs BLZ-354, BLZ-355, and BLZ-356.

    Revision: 5125
    Author: [email protected]
    Date: 2009-03-02 05:55:42 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Update excludes.properties file for BlazeDS/trunk to exclude tests due to bugs BLZ-354, BLZ-355, and BLZ-356.
    Also exclude JMS tests on WebSphere due to configuration issues on the regression box. This is being tracked by QETOOLS-32 in jira.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-354
    http://bugs.adobe.com/jira/browse/BLZ-355
    http://bugs.adobe.com/jira/browse/BLZ-356
    http://bugs.adobe.com/jira/browse/QETOOLS-32
    Modified Paths:
    blazeds/trunk/qa/features/excludes.properties

  • How do i save an audio file using quick time?

    How do i save a audio file from quick time. When I looked it up I was told to go to file on quick time and click on save as but my quick time has no save as to click on in file. What Now?

    How do i save a audio file from quick time. When I looked it up I was told to go to file on quick time and click on save as but my quick time has no save as to click on in file. What Now?
    You need to explin your workflow better.
    The "Save" action may be initiated by a "Share" or "Export" option depending on the app you are using. For instance, QT 7 Pro has "Save", "Save As...", "Share...", "Export...", and "Export for Web..." options depending on what you are specificly trying to do. On the other hand, QT X may have "Duplicate", "Export...", Export To", and/or "Share" options for various goals.
    Are you trying to record a new audio file using a mic, extract and save an audio track from a video, export audio from a video file, save an internet audio file that opened in the QT player, save an online audio file, etc?

  • How can i update data in JTable at run time ?

    i am trying to build a client/server architecture for conducting quizzes & online tests.. My client will return a object to the server after the test is over, which contains details about the participant, his score and other details. i am putting the incoming object to an Vector. I'll create a new thread each time for the incoming connection and insert the object to the Vector.. Now, please tell me tat, how can i update my table automatically at run time so tat, my table is updated whenever a new object is entered into vector..
    here is my code for the table..
    public class MyTableModel extends AbstractTableModel {
        String columNames[] = { "ID", "NAME", "COLLEGE", "SCORE", "CELL" };
        /** Creates a new instance of MyTableModel */
        public MyTableModel() {
            Main.List = new Vector();
            SetDefaultData();
        public int getRowCount() {
            return Main.List == null ? 0 : Main.List.size();
        public int getColumnCount() {
            return columNames.length;
        public String getColumnName(int column) {
            return columNames[column];
        public boolean isCellEditable(int row,int col) {
            return false;
        public Object getValueAt(int rowindex, int columnindex) {
            if(rowindex < 0 || rowindex >= getRowCount())
                return "";
            Student row = (Student)Main.List.elementAt(rowindex);
            switch (columnindex)
                case 0 : return row.id;
                case 1 : return row.name;
                case 2 : return row.college;
                case 3 : return row.score;
                case 4 : return row.cell;
            return "";
        public String getTitle() {
            return "Student Table";
        private void SetDefaultData() {
            Main.List.removeAllElements();
            Main.List.addElement(new Student("CS041","Keerthivasan M","MNM",95,"9884326321"));
            Main.List.addElement(new Student("CS012","Arun M","MNM",90,"9884825780"));
            Main.List.addElement(new Student("CS019","Balaji S","MNM",79,"9841742068"));
            Main.List.addElement(new Student("CS005","Anand R","MNM",89,"9884130727"));
            Main.List.addElement(new Student("CS045","Manish J","MNM",55,"9841624625"));
            Main.List.addElement(new Student("CS013","Mangal S","MNM",5,"9841961742"));
    }

    In the future Swing related questions should be posted in the Swing forum.
    how can i update my table automatically at run time so tat, my table is
    updated whenever a new object is entered into vector..You don't update the Vector directly. You should be creating a method in your TableModel, called "addRow(...)". This method will do two things:
    a) add the Student object to the Vector
    b) invoke the fireTableRowsInserted(..) method of AbstractTableModel. This will cause the table to be repainted.

  • List View: How to force update of *actual* file dates when sort by date?

    List View: How do I force and update of actual file dates when sort by date?
    When I go in, I often see the sort order and dates from 12-15 hours ago!
    not good

    Hi, did you ever get that Windows® Sharing thing worked out?
    On this problem, If it's just that you need the Finder to wake up to the fact that it needs to update the window give a try with Refresh Finder - 1.3...
    http://www.versiontracker.com/dyn/moreinfo/macosx/33066

  • How do I update linked FM files without losing TOC entries or Map IDs?

    Hi,
    I'm using RH 10 with linked FM 11 files to create a WebHelp project and this is what happens when I do an update or force update of a linked file in the RH project:
    After the update, the topic that contains updated content gets deleted from project TOC in RH.
    After the update, any Map IDs assigned to the topic that contains the updated content are deleted.
    Can someone please advise how to update a linked file without losing TOC entries or Map IDs?
    Thanks a bunch!
    Gabe

    HI Gabe,
    You will want to link the TOC from FM in your conversion settings, and set the map id's via TopicAlias markers in FM.
    -Matt
    Matt R. Sullivan
    co-author Publishing Fundamentals: Unstructured FrameMaker 11
    P: 714.960.6840 | C: 714.585.2335 | [email protected]
    @mattrsullivan LinkedIn facebook mattrsullivan.com
    http://mattrsullivan.com/

  • How to read from a .properties file...?

    Hello all,
    I'm new to this forum.
    I have a problem in reading data from .properties file...
    Follow is my properties file...
    log4j.properties
    log4j.rootLogger=warn, file, mail
    log4j.appender.file=org.apache.log4j.RollingFileAppender
    log4j.appender.file.maxFileSize=100KB
    log4j.appender.file.maxBackupIndex=5
    log4j.appender.file.File=D:\log.txt
    log4j.appender.file.threshold=info
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
    #email appender
    log4j.appender.mail=org.apache.log4j.net.SMTPAppender
    #defines how othen emails are send
    log4j.appender.mail.BufferSize=1
    log4j.appender.mail.SMTPHost="smtp.Honeywell.com"
    log4j.appender.mail.From=[email protected]
    log4j.appender.mail.To=[email protected]
    log4j.appender.mail.Subject=Log ...
    log4j.appender.mail.threshold=error
    log4j.appender.mail.layout=org.apache.log4j.PatternLayout
    log4j.appender.mail.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
    I want to access file path given in .properties file..
    I'm coding like this...
    Properties props = new Properties();
    String p=props.getProperty("file.FILE");
    The above code is not getting me the string.. it shows null value...
    Any solution...?
    Thanks in advance......

    RahulSharna wrote:
    public Properties getProperties(String fileName)throws Exception{
    Properties prop = null;
    FileInputStream fis = null;
    Exception e = null;
    File file = new File(fileName);
    if(!file.exists())
    new FileNotFoundException(fileName);
    try{
    prop = new Properties();
    fis = new FileInputStream(file);
    prop.load(fis);
    }catch(Exception exp){
    e = exp;
    }finally{
    if(fis != null){try{fis.close();}catch(Exception ep){}}
    fis = null;
    file = null;
    if(e != null)
    throw e;
    return prop;
    }Hope the above snippet helps :)
    REGARDS,
    RaHuLYou do know that you can throw out of the catch block without "short-circuiting" the finally block, right? Making the declaration of e completely foolish. (Unless you actually want to do something after the try/catch block, of course.) And, if all you're going to do is throw the exception anyway, why bother catching it?

  • How to read sql from properties file in database control

    Hey Guys,
    I want to know that how a properties file can be used in bea built-in database control to read SQL.
    Any help would be greatly appreciated.
    Thanks,
    Deepak Kumar
    Qwest, India

    hi
    ok i tried it like its written in the tutorial...i do it like this:
    ClassLoader cl = ResourceAnchor.class.getClassLoader();
    props.load( cl.getResourceAsStream(pathname));
    -> tha pathname is dvd.properties
    and there always appears a NullPointerException: error reading properties file: java.lang.NullPointerException
    -angela

Maybe you are looking for

  • Combining various PDF files with forms fields: How To?

    Hi people. I have a problem with my Adobe Acrobat 9 Pro and some PDFs. Each file has a lot of form fields and they has the same name. When I try to combine allowed files in acrobat, the "combinator" throw a message adverting me that the fields are th

  • Problem with Prefpane setting

    When I go into the Screensaver PrefPane and set it to 5 minutes, when I quit/restart System Preferences, The Screensaver is set to Never. How can I solve this problem?

  • ADF DBSequence Error

    Hi Friends! I´m learning ADF with JDeveloper 11g release 1 and i have some problem with the DBSequence! I have done a simple sample to test de ADF operations! I used Fusion MiddleWare template to my application and i have used ADF Business Components

  • 10.1.3 JMS Cache Synchronization on OC4J

    Hi, We're using stand-alone OC4j 10.1.3.0 along with TopLink 10.1.3.0 (packaged with OC4j). In enabling JMS cache synchronization, I get the following error message: Exception [TOPLINK-12000] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118

  • Linux 8i patch #2 file crushed.

    in technet.oracle.com / software partition Section : Oracle8i EE for Linux, Release 8.1.5 Patches linux_815patches.tgz (6.4MB) - Upgrade/Patch 8.1.5.0.2 - also see README (posted 12/20/99) <- This file is not valid. when unzipped, It has error (unexp