----- Original Message -----
From: "Fogleson, Allen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 06, 2005 2:40 PM
Subject: RE: RESEND: RE: Load message resources from DB???



Yes there is the OJBMessageResource class and I believe the same author wrote a HibernateMessageResource class. The class I wrote is mostly a "JNDIJDBCMessageResource" which has a timeout cache attached to it. The config is comprised of three elements (comma separated)
1) The JNDI Name of the datasource to use that maps to a table.
2) The sql to use basically this sql relies on the fact that variable 1 is the locale, and variable 2 is the key .
3) The time that the cached value previously retrieved from the DB is valid. If this is 0 timeout is never.


The ones mentioned in Bill's book are very good implementations but I feel that it is sometimes nicer to have an implementation that does not add extra class libraries (i.e. OJB or Hibernate). If you are already using one of those in your app I would say then use those Message Resource extensions, but if you want something relatively simple that just uses standard J2EE and the struts libs then use mine. (I really should get it up on a site somewhere :)


Hi, I wrote OJBMessageResources a while back and it has not been updated since it was last published.


Struts will soon be changing (1.3.something) the internal mechanism from MessageResources/PropertyMessageResources (and factory) to commons-resources. That's why I wrote 3 implementations for commons-resources:
HibernateResources
IBatisResources
JDBCResources (not in CVS yet)


http://cvs.sourceforge.net/viewcvs.py/struts/commons-resources-optional/


These are not released (because commons-resources has not been released, but it is out of the sandbox, which is a good thing), but I will publish and announce the extensions when it get's the 1.0 stamp of approval.



Al

Thanks.


-- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to