System wide configuration file

I have a number of EJBs and plain Java Objects that all share a common set of 'configuration
properties' that the business would like to configure in run-time to affect how
the EJBs work.
Hence, I think that defining the same properties per EJB deployment descriptor
is overkill and wouldn't allow the business to change all EJBs at once.
What I'm really looking for is a system wide configuration XML file. Has anyone
got any ideas for how to make this a true singleton across the whole application
(2 app server clusters)??
Database is the obvious choice but seems overkill - the EJBs will use the configuration
information very frequently leading to lots of database reads. Has anyone got
a good 'file' equivalent that does some temporary caching instead?
Long shot I know, but thought that I'd ask.

OK thanks.
I'm starting to get twitchy about using read only entity beans to represent what
is afterall a set of name/value pairs. So I either:
1) Have an Entity bean instance per name/value pair. So I use findByPrimaryKey
(the name of the property)
2) Have an Entity bean that stores the whole collection of properties internally
and provides a 'getProperty' business method. But I feel like this is bending
the use of Entity beans though (what would findByPrimaryKey do?!)
May just go for a caching POJO instead.
Rich
"Dimitri I. Rakitine" <[email protected]> wrote:
Ah - these were added in WebLogic 7.0. Anyway, readonly beans with multicast
invalidation should be able to do what you want.
Rich <[email protected]> wrote:
Thanks. I understand read-only entity beans but not optimistic. Canyou point
me at a 6.1 document?
"Dimitri I. Rakitine" <[email protected]> wrote:
You can use entity beans which cache data between transactions (RO
or
optimistic), or
you can use cluster products like JavaGroups (http://sourceforge.net/projects/javagroups/)
or Coherence (http://www.tangosol.com/products-clustering.jsp).
Rich <[email protected]> wrote:
I have a number of EJBs and plain Java Objects that all share a commonset of 'configuration
properties' that the business would like to configure in run-time
to
affect how
the EJBs work.
Hence, I think that defining the same properties per EJB deploymentdescriptor
is overkill and wouldn't allow the business to change all EJBs at
once.
What I'm really looking for is a system wide configuration XML file.Has anyone
got any ideas for how to make this a true singleton across the wholeapplication
(2 app server clusters)??
Database is the obvious choice but seems overkill - the EJBs will
use
the configuration
information very frequently leading to lots of database reads. Hasanyone got
a good 'file' equivalent that does some temporary caching instead?
Long shot I know, but thought that I'd ask.--
Dimitri
Dimitri

Similar Messages

  • W2K8 & Win7 - Setting system-wide Trusted file locations not working

    Win 2008 Network, Win 7 workstations.
    RE: Setting system-wide trusted file locations
    I have an application using Flash stored on a network location that accesses other files in the same location.  This causes the security warning "The following local application... is trying to communicate with this internet-enabled..."  I can add the location to the trusted sites in the Setting Manager and the warning goes away.  It is not practical however to do this on every machine on the network.  I have tried the FlashPlayerTrust directory and mms.cfg file and neither of these seem to work.  Is there a trick to getting the FlashPlayerTrust directory to work properly.  If I could get this working, I could create a script that copies this file to all machines on the network. 
    Any help you be greatly appreciated. 

    Hi Todd,
    Can you please provide just a little more detail?
    * When you say "accessess", what API is being used?  Are the paths to the other files relative, file: URI http: URI, other?
    * In the FlashPlayerTrust directory, are you using the same path notation as appears in the Settings Manager?  What's a sample {filename}.{ext} being used?
    Thanks!
    -Erica

  • An OS-Intergrated place to store per-user application configuration files.

    A Chairde,
    I'm developing an application that could be deployed on multiple platforms. I'm looking for a location to store per-user configuration files in a OS-integrated way.
    I use a utility class to determine the OS of the users machine. I know from experience that Windows NT5+ likes to store per-user settings/configurations in the %APPDATA% path (which is usually C:\Users\<username>\Appdata\Roaming\<vendor>\<software> etc.) I'm using a call to the environment labels to determine it's location.
    I'm a linux user myself, so I'm aware that most UNIX based Operating Systems like to store personal configurations in hidden folders in the user's home directory (ex /home/<username>/.<application> etc.), Obviously, I'm using a call to the system property user.home to determine that location.
    My Question is in relation to Mac OS and Mac OS X, where would it be a safe location to store per-user configurations? I know OS X is BSD/UNIX based so is it safe to assume to store them as a hidden subfolder of the user.home directory? What about Mac OS classic? Where are per-user settings stored, or is it like Windows 9x and NT4 and lacks proper multi-user setups (although NT4 is somewhat more prepared then 9x) ?
    It would be much appreciated if anybody has any ideas.
    Is Mise,
    Seán Mac Aodha
    PS. I'm not using Javas Property files etc. I've rolled my own exchangeable format for storing key,value pairs.

    I've used databases in the past to store local files but clients have sometimes run into trouble when the database daemon goes down or doesnt start-up normally because of a "improper" shutdown etc.
    In my own implementation of "Settings Files" i have serialized hashtables marked with appropriate metadata stored to the users "application data", a backup or original copy of those settings in the common directory shared by my application framework and then in a networked enviroment, the Settings can be hosted on a database server, so the user can travel between client machines and keep their settings (and files) with them.
    I have, with a bit of googling, come across the most obvious page i should have looked at in regards to Apple Mac OS X
    http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html
    According to Apple's guidlines, the most suitable place to store User configuration files is in the ~/Library/Application Support/<Application Name> directory.
    and for System-wide configuration files, /Library/Application Support/<Application Name> rather then storing them with the application in the /Applications directory.

  • [solved] trying to figure out BASH configuration files

    I am trying to figure out where to properly place commands in the many stated/existing BASH configuration files —reading the wiki and the man page I see there are what at first glance are too many files:
    from: http://www.gnu.org/software/bash/manual … rtup-Files
    invoked as an interactive login shell or with --login:
    1. executes /etc/profile
    2. executes-first-one-of-the-following: ~/.bash_profile
    2. executes-first-one-of-the-following: ~/.bash_login
    2. executes-first-one-of-the-following: ~/.profile
    from: https://wiki.archlinux.org/index.php/bash#Configuration
    configuration file sourcing order at startup ... by default in arch:
    /etc/profile (indirectly) sources /etc/bash.bashrc
    /etc/skel/.bash_profile (which users are encouraged to copy to ~/.bash_profile) sources ~/.bashrc
    which means that /etc/bash.bashrc and ~/.bashrc will be executed for all interactive shells whether they are login shells or not
    It isn't clear to me what exactly means file#1 "indirectly sources" file#2: including ? append target file ? use file#2 instead of file#1 ?
    It isn't clear either if ~/.bash_login and/or ~/.bash_logout are ignored (or not) in arch
    so /etc/profile should be the (preferred) system-wide configuration file ?
    so ~/.bash_profile should be the (preferred) user-specific configuration file ?
    If so, does it means I should delete /etc/bash.bashrc (this is where I currently have system-wide commands) in favor of (ie: moving the content to) /etc/profile ?
    Last edited by ivanborodin (2014-06-10 16:28:21)

    First and foremost: thanks for the replies.
    Ziusudra wrote:As the Wiki states ...
    I am fully aware of what the wiki is stating —I even included the link in my first post. The problem is not that I am not aware of what it is stating, it is just I don't understand it and thus my post to begin with. More precisely; this highlighted line:
    Note: /etc/bash.bashrc is non-standard, only some distributions like Arch Linux have this included because packagers have added a -DSYS_BASHRC="/etc/bash.bashrc" flag at compilation time, in order to have a system bashrc file.
    which clearly states /etc/bach.bashrc is non-standard was the first hint to me that these files were legacy/going-to-be-deprecated/something-like-this (my assumption) in favor of newer (my assumption) /etc/profile and ~/.bash_profile
    Maybe I am asking some obvious question (this is why I am asking it in the newbie corner) but please, have in mind that for someone coming from the Windows world some things/concepts are totally alien at first sight, for eg: in Windows you start Powershell and you have one (only one) place to set your configuration options and the like. Here I am offered with:
    • 2 possible system-wide files: /etc/profile and /etc/bash.bashrc
    • 2 possible user-specific files: ~/.bash_profile and ~/.bashrc
    • 1 possible user-specific files: ~/.bash_login (and ~/.bash_logout)
    ... so I have (at least) 5 different places to execute commands upon login.
    I was carefully reading all the files present on my current installation and now I understand what "indirectly sourced" means: including (if the file is present just insert it here)
    I still don't understand what commands should be placed in which file; for eg: system-wide aliases should be placed in /etc/profile or in /etc/bash.bashrc ?
    One more time, I am not a rocket-scientist nor I am a dummy, but the wiki just states file precedence without offering any details as best practices or something like that and just figure out: that for such a basic-thing I am getting different answers from two users (someone with 6000+ posts) ... either one: or the wiki is not clear or this thing is a little more complex than it seems at first sight ... just my thought.
    Anyway, needless to say, thank you both for your time and patience.

  • Set system wide default mailto url

    I'm trying to configure system wide settings in linux so any new user will apply for this settings.
    I want register my zimbra server with mailto links.
    I've found some information here:
    http://www.zimbra.com/forums/general-questions/48547-how-control-mailto-selection-firefox.html
    but this must be performed by the user and I want to be preconfigured.
    I also tried to play with mimeTypes.rdf, but it seems that there's no system wide mimetypes file. is just created when users changes something.
    how can I setup that setting system wide?

    I've found a partial solution.
    create an application file, for example '''/usr/share/applications/zimbra.desktop''' with this content:
    [Desktop Entry]
    Icon=mail-message-new
    MimeType=x-scheme-handler/mailto;
    Name=Zimbra
    Comment=Zimbra
    Exec=xdg-open https://my.zimbraserver.com/zimbra/?view=compose&to=%u
    Type=Application
    X-XFCE-MimeType=x-scheme-handler/mailto;
    then modify file '''/etc/gnome/defaults.list''', find and substitute '''x-scheme-handler/mailto''' with filename you just created:
    ''x-scheme-handler/mailto=zimbra.desktop''
    the caveat is only works with unity, if you use another wm probably won't work

  • System wide search...

    hello,
    i'm trying to come up with the best way to search system wide for files that contain a certain name or maybe a certain type of file. i'm looking at any possibilities...here are some i've considered...
    applescript - list folder
    shell script - find, locate, msfind, ls | grep
    cocoa/carbon - nsdirectoryenumerator, fscatalogsearch
    i know this is the applescript forum but since there are some limitations (i think) in searching with plain applescript i'm sure all of you might have some suggestions as to what is the best approach? as for the search being system wide i should say as much possible because i want to keep the time down (as fast as possible). so i can take some shortcuts if necessary...
    thank you,
    rick

    Great!
    This test shows that the search is for files containing the name. notice that some of the files begin with period.
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |   grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery__yellow__4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    mac $
    Robert

  • System wide default configuration files?

    I have six people using the computer, and I don't want to have to configure starting Wicd in the tray for each user or font configuration...
    Is there a way to set up configuration files for new users like Ubuntu and all of the other "tweaked" distros do?

    Doesn't matter where you copy the config files from, so long as they're valid and do what you want.
    Whether configuring your user will give you ~/.config files that do what you want depends. For example, if there's an existing /etc/foo_config file, and you set up your ~/.foo_config file in a way that (whether you realize it or not) depends on the stuff in /etc/foo_config being the system default, and then you copy your ~/.foo_config file to /etc/foo_config (overwriting the old file), then no, it won't work. If you avoid mistakes like that, and end up with ~/.foo_config files that all on their own do what you want, then sure, it will work. (Just check their permissions after you copy them to /etc.)

  • File Type Associations Do Not Stick System-Wide CS4

    When I set File Type Associations for PSD, Tiff, DNG and Jpeg fles in Bridge CS4 so that my files will open in PS CS3 (and insure that the same file associations apply in Bridge CS3), this works as it should from within CS4 and CS3, but it is impossible to introduce a system-wide change in Mac OS 10.5.5 via File-Info. It always reverts to CS4 for these file types, if I try to 'modify all'. The same thing happened when I upgraded from CS2 to CS3.

    If File Type Associations are set properly in the Bridge preferences, the default setting can be made to open files in PS CS3, with CS4 installed. This works from within CS3 and CS4. However, it sometimes happens that one is in the Finder, and the default remains PS CS4, however much one tries (via File-Get Info) to modify the default system-wide settings so that these files open in CS3. In any event, a bit invasive. Of course, if I could get comfortable with the Adjustment Layer Panels, all this would be unnecessary, but for the moment, there appear to be too many clicks, and it is going to take some time, so I don't want to burn bridges. Perhaps there is also some ambiguity in my mind as to what the pointing finger in the new Curves dialogue box, much like a tolling bell, is trying to tell me.
    But thanks, once again Anne, for your good-natured help.

  • Was advised to delete system configuration file from hard drive and now computer will not start - any help would be appreciated.

    Downloaded Yosemite and since then cannot connect to internet or bluetooth mouse - was advised to delete system configuration file from the hard drive and since then cannot start up computer. Any help would be appreciated - cheers.

    Boot the MBP with the OPTION+COMMAND+R keys down.  The result should be a display showing a revolving globe.  By following the instructions, you will be able to reinstall the original OSX.  Then you may reinstall Yosemite.
    A solid Internet connection will be required.
    Ciao.

  • MaxDB configuration file - SAP System Rename

    Hello,
    I am new and tried to make a System Rename with SWPM.
    We have maxDB.
    After a few steps the setup wants you to choose a maxDB configuration file which was used for installation of the source system.
    Does anyone new where I can find this configuration file?
    I tried a few cfg files but nothing was correct.
    These files here are not correct, I tried.
    Configuration Files - SAP Documentation
    Thank you so far and well greets.
    Stefan

    Hi Deepak,
    Thanks for your suggestion but there are no existing enteries for MaxDB in the windows registry.
    We are facing an issue while renaming the database. Kindly refer to SAP Note : 1427931
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…
    Best Regards

  • Hide a  type of file System wide not just the extension*

    Is it Possible & if So  Howto hide a type of file System wide not just the extension*
    Am trying to HIDE the Associated file for Photo Processing software in Finder, its a Specific file to the Program & holds the Raw data text Processed Info
    . Would mean I would need to change each File individually
    Is there a way/apple script?
    Knowledge or experience would be Appreciated
    Thanks

    I followed these instructions and they work, but I also get errors. Here are two files in the directire, and the contents of ~/.profile, I called the function killextension:
    I run the command to hide the PDF:
    Note the two errors. Thank you very much, BTW. No more Dropbox attributes files!  

  • Move system.serviceModel configuration to a separate config file

    Is it possible to move system.serviceModel configurations to another config file?
    With appSettings, we can do something like
    <appSettings file="development.config">
    and during runtime, the web.config or the app.config will retrieve the configuration values from development.config.
    I tried <system.serviceModel file="wcf.config">  but it doesn't seem to be working.

    We had the same problem and we solved it by using the MsBuild Community Tasks. The setup is easy: we have several Master.app.configs, used in unit test, web client and forms client assemblies, and all have a single empty xml block for service model configuration:
    Code Snippet
    <system.serviceModel />
    And we have a Master.Servicemodel.config.xml file in our repository with the following content:
    Code Snippet
    <configuration xmlns:xmu="urn:msbuildcommunitytasks-xmlmassupdate">
      <substitutions>
        <system.serviceModel>
          <behaviors>
            <endpointBehaviors>
    And now the magic part: an MsBuild script called configure.proj with the following task:
    Code Snippet
    <Target Name="ConfigureServer">
            <!-- merging master config with servicemodel config -->
            <XmlMassUpdate
                    ContentFile="<path>\Master.app.config"
                    ContentRoot="/configuration/system.serviceModel"
                    MergedFile="<path>\App.config"
                    SubstitutionsFile="<path>\Master.Servicemodel.config.xml"
                    SubstitutionsRoot="/configuration/substitutions/system.serviceModel" />
    This task is done for every master config file that should be merged with the service model section. Note, that only the master files are under revision control, so that every developer can change the local config files without marking the working copy as changed. And by executing the configure-script, all local config files are switched back to a default status again. This is very helpful and is also included in our nightly build script.
    Bye,
    Marc

  • Core services configuration files in Operating System

    Hello everybody,
    I am trying to make a modification to
    CMC --> Servers --> Service Categories --> Core Services --> CentralManagementServer (Common settings)
    However, I cannot access it because of a connection issue (that has to do with the modification that I am trying to make). My question is whether I can access and modify the specific configuration files directly from OS and not through the web interface (CMC).
    My platform is IPS 4.1 sp2.
    Thanks in advance,
    Kanellos

    Hi Denis,
    Our server is hosted on windows OS. I followed your advice and restarted SIA using port 6401 instead of 6400. That way, I was able to login to CMC and perform the fix I wanted. After that I changed back SIA to use port 6400.
    Just to give you the full picture, my initial problem was with Data Services. I couldn't (and still cannot) connect via my laptop with DS client to my repository. The error message I am hitting on is:
    "Logon failed to specific system.
    Check system name, port number, user  name, password, authentication method and try again.
    Additional information: <Session: SDK failure>"
    I am pretty sure that system name, port number (6400), user name and password were correct, so I tried to look into other possibilities. While searching I came across one post that was mentioning that is not enough to have port 6400 open but DS will use one more port. If "Auto Assign" options is selected then the other port to be used is random, but you can uncheck it and force CMS/DS to use specific port. It sounded a valid possibility in my case because in the environment I am working at the moment all ports are closed except for the ones that I have requested to be open. However, I didn't want to make a request for opening another port before confirming that this would fix my problem, so I decided to use port 6400 that was already opened (and in use of course!). When I made the change, I got the following error:
    35101
    The root server reported an error Initialization Failure. (Reason: An unexpected problem (exception) happened.  Reason given: The port number specified for the server is already in use. (FWB 00092), The server has problems using TCP/IP. The port number you are using is probably already in use..).
    And this is when  I started this thread.
    If you have any suggestions/advice on how I can resolve my underlying issue, please share.
    Thanks and regards,
    Kanellos

  • I can not open Firefox. Keep getting the error message "Failed to read the configuration file. Please contact your system administrator." What do I do?

    I can not open Firefox. I keep getting the message "Failed to read the configuration file. Please contact your system administrator." I have tried uninstalling Firefox and then reinstalling it but without success. What should I do?

    Which Fx version? When you uninstalled Fx, did you <b>reboot</b> computer before reinstall?
    Also, check for / delete any leftover files in the Fx programs install folders, before reinstall?
    Is your profile in the default location or custom location?
    Have you tried creating a <u>new, <b>completely</b> clean profile</u> - to test (then make sure to select that profile to start Fx - from the Profile Manager)? (no addons or plugins installed).
    Does the user acct (that Fx fails under) have access ("rights") to all locations - especially for Fx profiles location?

  • Change the file set icons system wide

    Hello,
    I am trying to change all my .html, .js, .css file sets, system wide. Right now they are all the plain boring white with text. If I go into a folder they quickly appear with their more colorful Dreamweaver, photoshop, etc icon, but quickly jump back to the plain white, boring icon. I know how to change the files icons one by one, but obviously that could take a while.
    Looking for an easy way to change my files system wide wothout screwing anything up. Recently came from a PC and loving my mac (never going back).
    Thanks in advance!

    Hi
    Still no :o)
    The only way around it, is to wrap your conc process that generates the etext output either with another program or if its an Oracle Report based program, in the after report trigger. That will get a handle on the generated file, easy enough cos you'll know the requestid, and then copy and rename it to the same or another location. We used to do this for a payments process in the Netherlands localization we ship.
    Tim

Maybe you are looking for