JDBC backing store for Preferences?

I've searched here and on Google and can't find anything about a JDBC backing store for the Preferences API. Does one exist? I looked in rt.jar on both Linux and Windows, and I find only FileSystemPreferences and WindowsPreferences. Google results showed discussion of a JDBC implementation for the Apache Jetspeed project. I haven't dug through there yet to see if they have something reusable. Strange, I would think a database would be a common storage medium for preferences. Thanks.

You'll have to write your own implementation of the API or wait until someone else writes one. You can find the API in the 1.4 javadocs.
good luck.

Similar Messages

  • Disabling backing store on Preferences API

    I'm working with a third-party API that makes heavy use of the Java Preferences API.
    However for the application I'm building persistent storage of preferences makes no sense. Therefore I want to disable the backing store so that my "preferences" becomes something that lives in memory only. I also want to avoid the hassle that might come from not having write permission to the backing store.
    I can find lots of examples on the Internet for disabling the Preferences API all-together. This is done by creating a new PrefencesFactory that does absolutely nothing and using this factory instead of the default.
    (all references on the Internet seem to ultimately come from this article: http://www.allaboutbalance.com/disableprefs/)
    I'm not sure what is in that article is what I want. I do not want to disable the Preferences API all-together, I only want to disable the backing store. I'm uncertain if that is what I get from the above mentioned DisabledPreferences implementation.
    Any ideas of how I can disable the backing store ?
    Thanks.

    Thanks, Kaj.
    My question was not entirely clear. As I understand Sun's Preferences API in its standard form it holds the data both in memory (cache) and in the persistent backing store. Therefore I'm not sure it is even required to build a backing store that holds data in memory, i.e. I can use DisabledPreferences in its unmodified form.
    If I'm lucky then all the "get" methods do not in fact go to the backing store to get the value but instead answer with a value from cache. I would expect the backing store to be asked only if the question cannot be answered from cache. If true I will not have to implement my own memory-based backing store.
    But why do I waste your time with this when a simple test will quickly reveal what is going on. :-)
    Stay tuned.
    Thanks.

  • Iscsi target rewriting sparse backing store

    Hi all,
    I have this particular problem when trying to use sparse file residing on zfs as backing store for iscsi target. For the sake of this post, lets say I have to use the sparse file instead of whole zfs filesystem as iscsi backing store.
    However, as soon as the sparse file is used as iscsi target backing store, Solaris OS (iscsitgt process) decides to rewrite entire sparse file and make it non-sparse. Note this all happens without any iscsi initiator (client) accessed this iscsi target.
    My question is why the sparse file is being rewritten at that time?
    I can expect write at iscsi initiator connect time, but why at the iscsi target create time?
    Here are the steps:
    1. Create the sparse file, note the actual size,
    # dd if=/dev/zero of=sparse_file.dat bs=1024k count=1 seek=4096
    1+0 records in
    1+0 records out
    # du -sk .
    2
    # ll sparse_file.dat
    -rw-r--r--   1 root     root     4296015872 Feb  7 10:12 sparse_file.dat
    2. Create the iscsi target using that file as backing store:
    # iscsitadm create target --backing-store=$PWD/sparse_file.dat sparse
    3. Above command returns immediately, everything seems ok at this time
    4. But after couple of seconds, disk activity increases, and zpool iostat shows
    # zpool iostat 3
                   capacity     operations    bandwidth
    pool         used  avail   read  write   read  write
    mypool  5.04G   144G      0    298      0  35.5M
    mypool  5.20G   144G      0    347      0  38.0M
    and so on, until the write over previously sparse 4G is over:
    5. Note the real size now:
    # du -sk .
    4193252 .Note all of the above was happening with no iscsi initiators connected to that node nor target. Solaris OS did it by itself, and I can see no reasons why.
    I would like to have those files sparse, at least until I use them as iscsi targets, and I would prefer those files to grow as my initiators (clients) are filling them.
    If anyone can share some thoughts on this, I'd appreciate it
    Thanks,
    Robert

    Problem solved.
    Solaris iscsi target daemon configuration file has to be updated with:
    <thin-provisioning>true</thin-provisioning>
    in order to iscsitgtd not to initialize the iscsi target backing store files. This is all valid only for iscsi targets having files as backing store.
    After creating iscsi targets with file (sparse or not) as backing store, there is no i/o activity whatsoever, and thats' what I wanted.
    FWIW, This is how the config file looks now.
    # more /etc/iscsi/target_config.xml
    <config version='1.0'>
    <thin-provisioning>true</thin-provisioning>
    </config>
    #

  • Backing store queue size configuration

    I have a backing store for my cache and have set it up for write-behinds. However I do not see any documentation to set the write-behind queue size. The JMX value "Coherence > Cache > DistributedCache > MyCache > QueueSize" shows 0. What does 0 mean - is it unbounded or no buffering?
    Thanks,
    Ashwin.

    Hi Ashwin,
    this is what the documentation says about QueueSize (on CacheMBean):
    QueueSize      Integer      RO      The size of the write-behind queue size. Applicable only for WRITE-BEHIND persistence type.
    As you see, this is a read only value, and I believe it means that everything is flushed, and if positive, it means the number of unwritten entries.
    You can specify the number of entries to buffer (for retries) from those entries which have failed to be written.
    http://wiki.tangosol.com/display/COH34UG/read-write-backing-map-scheme
    Look at the write-requeue-threshold setting for that.
    I believe, not-yet-attempted writes are not discarded before the first attempt, the write-requeue-threshold does not apply to those.
    Best regards,
    Robert

  • I just bought a iTunes card and its not accepting it.  It already sent it to the support team and they said they were going to get back to my within 24 hours and i am trying to buy a program in the app store for work.  How can I expedite this process?

    I just bought a iTunes card and its not accepting it.  It already sent it to the support team and they said they were going to get back to my within 24 hours and i am trying to buy a program in the app store for work.  How can I expedite this process?

    Has it been 24 hours?
    I take it this was a gift card.  iTunes Store:  Invalid, Inactive, or Illegible codes http://support.apple.com/kb/TS1292 - gift cards
    I don't know if this provides an alternative means: https://expresslane.apple.com ; select 'iTunes' in the first column; 'iTunes Store' in the second column
    If you are really desperate you could buy the app yourself, then request reimbursement.

  • If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now?

    If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now? I forgot to ask.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT1665 Having trouble with my iphone 5 charger . Can I take it back to the apple store for a new one .

    My iphone charger has a shortage or something . It's not working . Can I take it back to the apple store for a replacement ?

    Yes. Take your iPhone as well so Apple can check warranty
    status to see if the charger is covered.

  • C++ Look alike for Java EJB-- JPA-- Backing Store

    Hi All,
    I'm familar with the creation of an EJB data model , JPA, and tying it into Coherence via Toplink Essentials to the Data Store of my choice. What is the mechanizum used for doing the same with a C++ client wrting cache objects and having Coherence back store those ojects to a database of chioce?

    Hi Morsie,
    C++ is only supported for Extend clients.
    Here is some information on C++ extend clients:
    http://coherence.oracle.com/pages/viewpage.action?pageId=1343491
    Extend clients are not actually members of the cluster but instead connect to the cluster via TCP/IP. So, since cache store operations occur in the cluster, they are completely unaffected by the fact that you are accessing a cache via a C++ Extend client.
    Please let me know if you have any further questions.
    -John

  • Can OS X 10.8.5 support a Verbatim 2TB Store 'n' Save USB 3.0 Desktop Hard Drive to be used as back-up for videos-photos?

    I am considering purchasing a Verbatim 2TB Store 'n' Save USB 3.0 Hard Drive to use as back-up for videos-photos.  Does anyone know if OS X 10.8.5 supports a drive this size?  ( I know that I'll only have USB 2.0 capability).  My system is  an early 2009 24" iMac, 2.93 MHz Intel Core Duo, with 8GB 1067 MHz DDR3.
    I would appreciate any feedback/recommendations.  Thank you for your consideration and support!

    The size is not a problem.  While the drive will work it will work as a  USB 2 drive you are paying extra for USB 3.
    If you plan on upgrading your system then getting a USB 3 drive now might make sense but if you have no plans to upgrade there is no reason to spend the extra money.
    The drive, even as a USB 3 drive, seems a bit pricey. Have you looked at other drives? OWC, Amazon and Newegg.com might have better deals.
    regards

  • Which files - such as preferences - need to be backed up for Logic 7.2.1?

    I'm trying to create Retrospect scripts to backup the important files of Logic that might need to be replaced if something goes wrong - such as the preferences.
    Anyone have a list of these files and their locations?

    Backed up for 7.2.1?
    7.2.1 installer installs only Logic and the node. If you want to back up your prefs, do so. I trash them after updates.
    From the man:
    Saving of Song Settings and Preferences
    The Song Settings are stored with the song file. If you want to start Logic with certain
    settings, simply make the desired settings in your Autoload song or a Template.
    The Preferences are saved whenever you quit Logic. There are several Preference files,
    which are stored separately in the $/User/Library/Preferences folder. Logic preference
    files all begin with “com.apple.Logic”.
    +++++++++++++++++++++++

  • I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes  it synced evrything but the contacts and othe minior things were the only things that really transfered  my apps and all my

    I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes.  It synced evrything but the contacts and other minor things. those were the only things that really transfered.  My apps and all my music did not. Tthe thing is when i just went to go manually start dowmloading a few of the songs that i knew i already bought , itunes is making me pay forthem again.  Its not saying instal like it usuall does when you go download something aleady purchased on your itunes account.  I think or thought it might have something to do with the fact that i just changed my apple id name right before i got my new phine but my apps all re-downloaded (manually-no syncing) without making me pay for them again.  i dont want to have to purchase allllll my songs again.  Can someone please help me!!  Itried going back to my old id or signing out of this id and signing in as my old apple id but now it wot even get on that oneits likjeit doesnt exist anymore..   And when i plug my old phone it shows in the itunes everything thats supposed to be there but all that doesnt stay in the itunes when i actually un plug it so when i plug my 5 in to my computer none of the stuff is in the store for me to actually transfer it  I am so good with technology and this has me stumped  please help

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • What is the definition of Backing Store?

    I see this term Backing Store thrown around here and there. Could someone explain the concept behind it? I first began wondering about this when I caught this term being used in the Preferences API docs.
    Thanks

    It's whatever persistence mechanism is actually responsible for storing/retrieving data. For J2EE EntityBeans, as an example, the "backing store" is the combination of the application server's caching mechanism and the database (typically) that the EntityBean represents. For a Map object, it's the underlying memory mechanism.
    Since I've only recently become aware of the Preferences APIs, I'm supposing the backing store would be something like a Properties file, the Windows "registry," LDAP, or someother long-term (non-memory) storage mechanism.

  • HT201250 Backup too large & time machine not backed up for over a year.

    Today I got this message:
    This backup is too large for the backup disk. The backup requires 188.89 GB but only 73.07 GB are available.
    Time Machine needs work space on the backup disk, in addition to the space required to store backups. Open Time Machine preferences to select a larger backup disk or make the backup smaller by excluding files.
    Then when I go to preferences it said
    73.1 GB of 320 GB available
    Oldest backup July 10, 2011
    Latest backup July 10, 2011
    Next back up Today at 7:25pm
    I was under the impression I had been backing up everyday and today was the first day I go the warning the backup was too large. Why is it that I have not had a back up for over a year? That worries me. I had a HD crash just over a year ago and the time machine saved my life. I thought everything was back to normal once I had my new HD installed, but wondering if that was the last back up it ever did for some reason.
    Any suggestions? I am going out to get a new external HD of 1TB and hoping all will start backing up again.

    Hi, what Mac Utilities is this you ran?
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imaging something not being covered there.

  • Problem,how do i get back my system preference? i think i delete it my mistake.

    problem,how do i get back my system preference? i think i delete it my mistake.

    did you delete it from your dock or did you delete it completely from the computer
    if it has just been removed from your dock all you have to do is go into your application folder and drag the system prefrences icon back to your dock .. if you are running an older version of osx go into finder click applications and find the icon for system prefrences there .. if you have snow lepord you can get the icon in the application folder on the right side of your dock
    if it has been deleted completely from the computer use the disks that came with your computer to reinstall it
    if your too nervous to do it yourself you can always make an appt with an apple store in your area at the genius bar and they can probably get it back for you

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

Maybe you are looking for

  • Adobe Photoshop CC - Cmyk problem :(

    Each file in CMYK looks like this:

  • Computer won't detect router wrt150n

    just bought this wrt150n and internet connection works but computer won't detect it and I cant run my slingbox on it. have tried easy install and disk that came with it.. Any help would be greatly appreciated oh, i have a cable modem with road runner

  • Changing pixel aspect ratio during cropping (LR3.2)

    When I crop sometimes the pixel aspect ratio changes here. I.e. the pic get stretched in horizontal or vertical way/or compressed. Any body seeing this also? After some time it does change to normal, but it makes cropping rather difficult when in a h

  • Newbie Web server question

    Hello, I've been able to setup my J2EE web server on localhost (my computer). But now I want to access this web server from within my intranet network, on another machine. How do I do this? Right now the URL to the servlet is http://locahost:8000/foo

  • After 5.1.1 sticky home?!?!

    After the update, my home doesn't work half the time. iPhone 4 by the way. I do hard reset, still same story. I have to "click" it multiple times in order to get anywhere. Some days its worse than other, then some days my phone acts perfect as always