Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2095

Re: Database implementation of java.util.prefs.Preferences?

From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Database implementation of java.util.prefs.Preferences?
Date 2012-09-19 15:28 -0700
Organization A noiseless patient Spider
Message-ID <k3dgu8$k1h$1@dont-email.me> (permalink)
References <505a3037$0$1299$65785112@news.neostrada.pl>

Show all headers | View raw


On 9/19/2012 1:51 PM, Marcin wrote:
>
> I have a Java program that uses java.util.prefs.Preferences to store
> configuration data. Everything is OK if one user works on one computer
> but if one user can use many computers the data is not shared between
> workstations and "environment" is different dependent on which computer
> user is logged in. I think I can store the same data in database because
> application uses connection to database for other purposes. Do you know
> any implementation of abstract class java.util.prefs.Preferences  that
> uses SQL to store the configuration data? I cannot google anything


I would kind of doubt there is one.  In a situation like this, I would 
consider using Preferences::exportSubtree() and 
Preferences::importPreferences() to read and write to a blob in a 
database.

I'd think carefully about it first though, as something about it feels 
like a mismatch for a preferences module in general.


Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Database implementation of java.util.prefs.Preferences? Marcin <nomail@nospam.com> - 2012-09-19 22:51 +0200
  Re: Database implementation of java.util.prefs.Preferences? markspace <-@.> - 2012-09-19 15:28 -0700
    Re: Database implementation of java.util.prefs.Preferences? "John B. Matthews" <nospam@nospam.invalid> - 2012-09-19 20:59 -0400
      Re: Database implementation of java.util.prefs.Preferences? markspace <-@.> - 2012-09-19 19:07 -0700
        Re: Database implementation of java.util.prefs.Preferences? "John B. Matthews" <nospam@nospam.invalid> - 2012-09-20 12:20 -0400
  Re: Database implementation of java.util.prefs.Preferences? Roedy Green <see_website@mindprod.com.invalid> - 2012-09-21 07:12 -0700
    Re: Database implementation of java.util.prefs.Preferences? "John B. Matthews" <nospam@nospam.invalid> - 2012-09-21 21:10 -0400
  Re: Database implementation of java.util.prefs.Preferences? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-21 10:19 -0700

csiph-web