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

Similar Messages

  • How can I convert multiple files at one time and not one at a time

    How can I convert multiple files at one time and not one at a time

    Hi Plissey1950,
    Sorry for the lengthy delay to a response.  Are you trying to convert multiple files to individual PDF files at the same time? (not combine them).  If so, you'll need to use Adobe Acrobat for this function. The CreatePDF service does not have the ability to convert multiple files to multiple individual PDF files.
    Thanks,
    David

  • How can I clean up queue one-time on Sun Java system messaging 6.3

    Hi,
    <address>Our Email server have a problem, When I run _./imsimta qm directory tcp_local_, There are about 5 Millions of messages in the queue.</address>
    Now our Email server send messages very slowly, how can I clean up queue one-time?
    the command _./imsimta qclean_ is very slowly.
    What can I do to prevent this problem?
    our Email server version is :
    Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)
    libimta.so 6.3-6.03 (built 17:12:37, Mar 14 2008; 32bit)
    SunOS email-1 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V890
    Thank you !

    If you have more than 100,000 messages in the queue, then look at the MAX_MESSAGES parameter in [the job_controller.cnf file|http://wikis.sun.com/display/CommSuite/Job+Controller+Configuration+File]. If the parameter is not specified, it defaults to 100000. If you have more than that number of messages in the channel queues, it will take a long time for new/legitimate messages to be sent because job_controller is only considering the first 100,000 messages in the queue.
    If you get into the "imsimta qm" command do do "sum -database", it will show a summary of what job_controller has in its internal cache and therefore what job_controller is working on. If you compare that to "sum -directory" you will probably see a difference.
    If these are all legitimate messages, you need to increase MAX_MESSAGES, cnbuild, and restart job_controller.
    If they are not, then preventing this in the future will require determining how they got into your queue and correcting that.
    As for removing them, the "imsimta qm" commands allow you to select messages by various criteria and then you can "return" or "delete" them. But yes, that will take a long time if there are many messages because it is a single threaded process and it needs to open and examine each message. You may be able to accomplish the task more quickly with a shell script that works on individual channel queue subdirectories and then run multiple copies of that script in parallel. After you have cleaned out the queue, restart job_controller.
    Also, you might want to consider [the subdirs channel keyword|http://msg.wikidoc.info/index.php/Subdirs_and_nosubdirs_Channel_Options].

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

  • How can i upload files from one ip address to another  ip address machine ?

    how can i upload files from one ip address to another ip address machine ?

    i need to copy files from one client m/c to server m/c like sftp
    please suggest solution on this

  • Thanks.. can u please help me out in one more question. how can i transfer files like pdf, .docx and ppt from my laptop to iPhone 5 ? please its urgent.

    thanks.. can u please help me out in one more question. how can i transfer files like pdf, .docx and ppt from my laptop to iPhone 5 ? please its urgent.

    See your other post
    First, i want to know how can i pair my iPhone 5 with my lenovo laptop?

  • If i buy an iphone 5s sprint can i use it for CDMA? I ask that because i went out of the country one time and used it on a CDMA network but that was my iphon 5 not an i phone 5s.

    if i buy an iphone 5s sprint can i use it for CDMA? I ask that because i went out of the country one time and used it on a CDMA network but that was my iphon 5 not an i phone 5s.

    Sprint is a CDMA carrier, same as Verizon so it will work on CDMA.

  • How can i take photoshop off one computer and put it on another

    How can I take photoshop off one couputer and put it on another?

    Hi Beth, welcome to the discussions!
    Might be a good idea to also post over in the iPhoto forum if you haven't tried this yet as this is a common topic on their boards.
    You may be able to get your iPhoto library back by rebuilding it. I've done it, but's it's been a long time, so don't want to mislead you on anything. The guys over in the iPhoto forum are real experts and should have some fixes for you.

  • How to Upload the Materials for one Plant and then copy the same to all oth

    Hi All,
       I am using Material Types NonStock, Service, Spare Parts and Trading.
       How to Upload the Materials for one Plant and then copy the same to all other plants.
    can anybody give response for this requirement.
    Regards...
    <b></b>

    Hi,
    Using MM01 Only we can upload Plant Details.
    If you want to extend to other plant also, Use MM01 and select Plant view and give new plant details.
    If you want to copy from one plant to another plant after selecting Plant view , next screen you can select From Plant and To Plant Details.
    Reward Points If it helps you.
    Regards,
    Murali K

  • I bought my iphone5 last Mar 1, 2013. However, it was stolen/lost last friday Jun 14.How can I locked it for them not to use or resell it?I'm not registered at ICLOUD. I am not expecting it to be returned. I just want it not to be used anymore by others..

    I bought my iphone5 last Mar 1, 2013. However, it was stolen/lost last friday Jun 14.How can I locked it for them not to use or resell it?I'm not registered at ICLOUD. I am not expecting it to be returned. I just want the unit to become useless already so that stolen/lost  Iphone or any kind of apple brand gadget will no longer be of interest by others to buy it from any thief or any person who will resell it in just a small amount.

    Sorry, but if you did not set up Find My iPhone, then unless your iPhone is set up with a company Microsoft Exchange server or other mobile device management system, there is no way to wipe the iPhone of its data, though if you had a screen lock in it, the thieves/finder will probably restore it and wipe the data anyway. There is no way to lock the iPhone permanently to prevent someone from using your iPhone, though you can report the loss to your cell carrier and they may be able to blacklist it from connecting to their network.
    Regards.

  • How can I install themes for my ipad2 jailbrocken using evasion?thanks

    how can I install themes for my ipad2 jailbrocken using evasion?thanks

    Your post indicates you have used Cydia, which is a software application for iOS that enables a user to find and install software packages on jailbroken iOS Apple devices. Since your iPad has been jailbroken,  we can't help you in this forum. Best bet is to Google for answers.
    Plus your Apple warranty has been voided and the Apple Genius Bar/Support will not help you.
     Cheers, Tom

  • How can I  get System dates  with time scheduler using threads

    how can I get System dates with time scheduler using threads.is there any idea to update Date in my application along with system Date automatic updation...

    What the heck are you talking about and whatr has it to do with threads?
    Current time: System.currentTimeMillis. Date instances are not supposed to be updated.

  • I just updated my phone and by mistake made a new apple id. how can i delete the new apple id and use my old one so i can access my apps? thanks

    I just updated my iPhone. it prompted me to create an apple id. not being sure i did create a new one. after my phone updated i realized what i did. how can i delete my new apple id and use my old one so i can get my apps? thanks

    Go to 'Settings' and 'Store' and then click on the 'Apple ID' and sign out and back in with your correct one.

  • My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    iOS 7 does not support multiple user accounts like you want.
    If all the apps are different, you could set her up with her own page of apps, then just show her how to get to her apps page, or just buy her an iPad for herself.

Maybe you are looking for