Best way to store app properties

I need to port web application to WebLogic.
Old one use couple of ".config" files stored with .class file in same
directory
(so, by getting from system properties "classpath" and scanning trough all
directories ".config" files can be found and loaded)
on weblogic it doesn't work any more.
So, I'm thinking about:
1. how to make it accessible from some place related to weblogic home
(app can be deployed on servers with weblogic on different directories. so,
I can't use absolute path )
2.That is best way to store such stuff? (For future or just rewrite app)

Privet
You can store trivial properties in web.xml (context-param, init-param).
If your app requires .config files you can package them with application
classes and use Class.getResource...(...) to access them (class should be
one of your applications classes loaded by WAR classloader), or place them
in the WEB-INF/ directory and use ServletContext.getResource...("/WEB-INF/xxx.config").
Sergey Pomytkin <[email protected]> wrote:
I need to port web application to WebLogic.
Old one use couple of ".config" files stored with .class file in same
directory
(so, by getting from system properties "classpath" and scanning trough all
directories ".config" files can be found and loaded)
on weblogic it doesn't work any more.
So, I'm thinking about:
1. how to make it accessible from some place related to weblogic home
(app can be deployed on servers with weblogic on different directories. so,
I can't use absolute path )
2.That is best way to store such stuff? (For future or just rewrite app)--
Dimitri

Similar Messages

  • Best way to store objects' properties and later remake those objects?

    I want to create a bunch of objects, set their properties and then save that so on restart, the objects can be reconstituted. Is serialization the best way/ Some other way? I want to store them in XML so I can also create a GUI to show the objects stored.

    JoachimSauer wrote:
    6tr6tr wrote:
    I want to create a bunch of objects, set their properties and then save that so on restart, the objects can be reconstituted. Is serialization the best way/ Some other way?Serialization is definitely one way to do that.
    I want to store them in XMLUse JAXB or XMLEncoder/XMLDecoder.
    so I can also create a GUI to show the objects stored.What does a GUI have to do with writing XML? I don't see how that's in any way related.Thanks. What I meant was that I want to have a JTree populated easily with that info and I know there's good support for populating a JTree with XML.

  • What's the best way to store my info externally

    I have recently bought my first Macbook Pro 13" with 2.4 Ghz. I am currently using it for my own business and do tend to get a lot of files together. I went to look at "About this Mac" and have already got 369 Gb used up in storage... I have no idea how I have done that as I have hardly downloaded any apps on this computer besides the ones that were on here. I did download Vware Fusion 4 as I have a reservation system which I used to run on my pc and need to have this on here too so perhaps that software takes a lot of space.
    Could anyone advise on which is the best way to store my info externally, will any external harddrive do, or do you need a special one for Apple or Macbook pro. I am just asking as I have no idea and prefer to buy the right one straight away.
    Any help would be much appreciated !
    Thanks, Sara***

    Sara,
    The most reliable method is to use an external hard drive.  Some are better than others, but most will work.
    For the least amount of setup pain, I prefer to deal with the Mac specialists at OWC, http://www.macsales.com as they stand behind their products with great warranty and support.  I have one of their Mercury Elite Pro 2 TB drives that has multiple interface capability so you can get a fast interface for data transfer.
    Take a look at what they offer and see what fits your needs.  If you have more questions about doing thin, just ask on here.
    Ralph

  • Best way to update apps

    Is the best way to update apps through the ipod touch or through the computer to which the ipod syncs?
    I once updated the apps on the computer and synced my ipod with the computer but the apps on the ipod touch were not updated. Is it because the sync was not properly done?
    Thanks.

    the best way is to install all apps and updates from your computer. this will also drastically decrease your backup time. i recently deleted all my apps and reinstalled them from my computer, and my backup time dropped from 9 hours to about 10 mins. i was told this was prob caused by orphan data and errors from installing from the app store on your touch.

  • Best way to store big amount of data

    Hi, i need to store a big amount of data, written in a txt its size is almost 12 mg, anyway it depends on the computer it runs, beacause what i want to store is all the shared files in a computer.
    Which is the best way to store it? Array string? textfile? List? I don�t need the data after the app close.
    Thanks

    Well, then which is the best solution? LinkedList or
    Tree? i only need to store the full path.
    What i didn�t say, my fail, is that i need to search
    for a file name once i have stored them...For searching, LinkedList will be very slow if it's very large. I think the same is true of javax.swing .tree.DefaultTreeModel, which is the JDK's only tree implementation. I don't know what Jakarta-collections has - it's possible they have a tree that offers fast searching. If you want to stick to the standard Java libraries, you'll want a Set for fast searching. TreeSet keeps the entries in sorted order. If you also need to display them as a tree, you can keep them in both a Set and a tree. If you don't have enough memory to do that, then displaying the whole tree isn't going to be useful to the user anyway, so rethink your goal.

  • Best way to store lots of tile images

    Hey, In my game I'm gonna need to store probably thousands of tile images. They are all in .png format, and I am wondering the best way to store the image data. I could of course keep them in some folder called images, and then have thousands of files...but then people could jack them, and plus that would be inneficient use of space??? right?
    What is the best way to store them??
    thanks

    Anything can be "jacked". The other possible ways are storing them in some sort of archived file like a JAR or ZIP or GZIP. The only way to even remotely ensure no one will "jack" your images would be to store them in a compressed format which you created. Which would entail creating your own compression algorithms. Have Fun! :)
    Seriously though, I wouldn't worry too much about the images and people "jacking" them. As far as inneficient use of space, I personally wouldn't worry about this either unless your app will be delivered via WebStart or Applet. Then load time could be an issue. You could use lazy downloading though and download the images when they are needed.
    HTH
    Gregg

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • Best way to store data from a plot on hard drive

    I have a DAQ set-up that will be on 24/7 for several days, and the whole time it's streaming data to an XY-Graph with a limited buffer.  My question is, what's the best way to store my plot data in such a way that I can empty out my plot every few hours but if I want to pull up data from a few hours ago I would just have an option on my initial VI to view any old saved plot data.
    Basically, I'm trying to not overload my RAM with all my plot data so I'd like to save it to the hard drive while my VI is running, and only display, for example the last 8 hours worth of data... I've been looking at TDMS, but I'm not sure if that's the right solution.  
    much thanks!

    Hi,
    You could save your data using TDMS as well as ASCII to simply load it in another application later.
    Attached VI shows you how to save your data to a File after a certain amount of iterations, you can combine this then with your code and a timestamp.
    Christian
    Attachments:
    Save to new file every N samples.vi ‏20 KB

  • Best way to store documents and images in a web application

    All,
    Which is the best way to store the documents, is it Oracle DB or file system or Virtual Directory Mapping in weblogic.
    We are working on a Internet based application into CRM domain, there is a requirement where user can upload and download the documents (.pdf, .xls, .doc etc). Right now we are storing images in the DB. Is it advisable to store all the docs in database and will it scale up in future.
    PS: There is no scope for using content server because of business constraints.
    Please let me know, thanks in advance.
    Regards
    Girish

    Best way to store depends entirely on requirements.
    Why store it in the database when it for example is purely static images (e.g. used as part of the web GUI)? Instead that can be served up directly by a web server - which is specifically designed for this.
    If it is more than just an image, but include tags (non spatial data attributes), requires transaction control (e.g. updating an old passport/id photo with a newer one), auditing, filtering/searching and ordering, requires backup, needs security and access controls, and so on - than that is most definitely a database function.
    So the issue is not what the binary file is or contains - an image or pdf or something else. It depends entirely on how it is to be used and what the business requirements are in this respect.

  • What's the best way to store old FCP projects & media?

    Hey
    I've started to accumulate more and more video content of client projects, but I don't want to delete it in case they come back a year later looking for an update on the video product I made them.
    So, what's he best way to store FCP projects and video files?
    I thought maybe a BluRay burner might do the trick.
    Any suggestions?
    Sam

    Since you're using RAW files you might peruse the DAM Forum to learn about possible other DAM (digital asset management) software and workflows. There is a wealth of information at that site.
    I useMedia Expression for my primary DAM application and iPhoto for special projects like books, calendars, etc.

  • What is the best way to transfer apps, contacts, et cetera from one iPhone (3G) and computer (2006 MacBook) to a new iPhone (4S) and computer (early 2011 MacBook Pro)?  I have already moved music, among other things using Migration Assistant.

    What is the best way to transfer apps, contacts, et cetera from one iPhone (3G) and computer (2006 MacBook) to a new iPhone (4S) and computer (early 2011 MacBook Pro)?  I have already moved music, among other things using Migration Assistant but I cannot locate contacts or Apps.

    transfer just SOME of the applications
    it's all or none, i'm afraid.

  • Can you suggest a best way to store and read arabic from oracle database?

    Hi ,
    can you suggest a best way to store and read arabic from oracle database?
    My oracle database is Oracle Database 10g Release 10.1.0.5.0 - 64bit Production on unix HP-UX ia64.
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    I have presently stored the data in nvarchar2 field. But i am not able to display it correctly.

    Using the national characterset should work but there are other factors that you have to consider when working with NCHAR/NVARCHAR2/NCLOB.
    If possible, changing the characterset is usually the best solution if it's a possiblity for you.
    For more info:
    Dear Gurus: Can u pls explain the difference between VARCHAR2 & NVARCHAR2??

  • Best way to store TenantID in Azure

    I'm developing a multi tenant application
    I am using ASP.NET MVC and Asp.net Identity for authentication
    My client can have more than one company and you can change, user have multiple company
    I wonder what is the best way to store the TenantID in azure
    Claims?
    I'm Claims my value is:
    Type = "TenantId"
    Value = is Guid ( difficult or impossible to be guessed by changing the value of the cookie )
    Cache?
    Session ["TenatId"]?
    Router? {tenantid}}/controller/action

    Hi
    When you get a Graph Token from AAD, it has an Issuer claim in the Claims that has the TenantId in it, so you don't need to store the TenantId in a different claim:
    Sample issuer claim:<Issuer>https://sts.windows.net/cbb1a5ac-f33b-45fa-9bf5-f37db0fed422/</Issuer>For your reference of all available claims in AAD token take a look at here:https://msdn.microsoft.com/en-us/library/azure/dn195587.aspx#BKMK_TokenClaims
    Regards
    Aram

  • Best way to store constants

    I'm working on a set of drivers that call functions from a DLL provided by the instrument manufacturer.  They have an extremely detailed manual, which has been very helpful.  When they describe the functions (and the different values I can pass), they use named constants, and then at the end they define the value of each constant.
    This sort of thing works great in a text-based programming language: just assign the appropriate values to the constants at the beginning and you're ready to go.  But what's the best way to store these constants in LabVIEW?
    My initial approach was to use (strictly typedef'd) text rings (or occasionally enums): the constant name was the text string, and the numeric value was the value of that string.  The problem is that they occasionally have multiple constants with the same numeric value, and LabVIEW doesn't let you have duplicate values in a text ring.
    The thing I really like about using text rings is that this way, I have all of the values at hand to use in a control or a constant; I just plop down the appropriate text ring and select the constant I want.  It's also easy to keep consistent across all of the VIs in the project, since it's a typedef.
    But...since it looks like this won't work, at least not completely, what's the best alternative?  Enums wired to case structures that pass out the appropriate value?  Dual arrays, one with the constant name and the other with the value?  Something else?  The downside is that all of the above need some sort of wrapper VI, but I can't think of a way around that.  What would you do? 

    > It's also easy to keep consistent across all of the VIs in the project, since it's a typedef.
    Unlike an enum, the ring's data isn't really part of the typedef. If you drop a (strict typedef) ring constant on the diagram, the data is only up-to-date as of when the constant is dropped on the diagram; it isn't dynamically updated to reflect changes in the data of the underlying typedef. (And of course anything goes with non-strictly typedef rings, where you can set the strings at runtime.)
    As for the best solution, I don't know. Despite the above problems with rings I have still used them for this purpose since usually the definitions don't change with time. Your idea of using an typedef enum + case statement in a VI seems like the safest approach for constants that can have duplicate or nonconsecutive values.
    Message Edited by Rob Calhoun on 08-25-2009 02:52 PM
    Message Edited by Rob Calhoun on 08-25-2009 02:54 PM

  • Best way to store a lot of image files??

    I am working on a new project which involve user upload image to server and then do searching and view image. there will be a lot of image files. image will be displayed in web page as thumbnails, so there may be resized pic stored in server or resize on the fly.
    What is the best way to store image like this? as files in file system? database? etc...?
    Thank you very much

    Since seraching is invloved use a database. A file system is not good place to search in.
    Using a database will allow you to store additional data as well such as comments about the images or the ratings given by the users.
    Of course you will have to develop a propper table structure for this.
    Also do not generate thumbnails all the time instead cache them once they are created. Atleast the thumbnails of the images that are displayed often.
    Also store the last updted dates with the images so you can loow the images to be cached by the clients or the proxy server. That will reduce repatitive requests for the same image from same client.

Maybe you are looking for

  • Itunes files missing

    My itunes has worked fine for several months now, since xmas infact. untill the other day it decided to not work. whilst trying to start i tunes the following message appears "itunes cannot run because some of its required files are missing. please r

  • OTA update for preinstalled ps touch on galaxy note 10.1?

    Will there be an update to 1.3 for the pre-installed ps touch, or will note 10.1 users have to pay for the update? Also, it would be nice to see more brush options and better utilization of pressure sensitivity in the stylus.

  • Copy from word and paste in Firefox

    When I copy rich text with links and stuff from word into firefox... only the plain text is pasted. So all the links and other styles don't show.

  • Where are adobe settings saved?

    Hi, I'm trying to automate a change to adobe acrobat pro 8 when saving TIF files I want to be able to enter a setting without opening a PDF and doing all the setting from inside adobe.  So I'm wondering where are all the settings saved?  I have tried

  • Where do I report a phishing email claiming to be from apple?

    Received a bogus email claiming to be from Apple. Is there a place to report it to?