It's also very easy to create your own custom DatabaseMessageResource class 
following the methodology that James used.
Just create a trivial "DatabaseMessageResourcesFactory extends 
PropertyMessageResourcesFactory" to point to your DatabaseMessageResource 
class, then in your "DatabaseMessageResources extends 
PropertyMessageResources" class, override "public String getMessage(Locale 
locale, String key)" to read from your database (or in my case, first try to 
read from the database, then fall back to the flat file).

Of course, it wouldn't have been so simple if James hadn't provided a good 
example to work from.

-Mike


> ----- Original Message -----
> From: "Larry Babb" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Larry Babb" <[EMAIL PROTECTED]>
> Sent: Monday, September 13, 2004 11:56 PM
> Subject: Struts Database Message Resources via OJBMessageResources
> 
> 
> I found a reference to a sourceforge project that James Mitchell developed
> called OJBMessageResources and I am curious to the status.
> 
> It was last updated in April 2003. I found a reference on a mailing list
> that it was/is going to be integrated into the Commons Resources and that
> the Commons Resources was being planned for integration into Struts (1.3 I
> think).
> 
> My questions are:
> 
> 1. Does anyone know the current status of this project?
> 2. Or an alternative for centralizing message resources across web apps in 
a
> single repository?
> 3. The OJBMessageResources project is based on the older jakarta-ojb v 
0.9.4
> which is now under DB Commons in Apache. Is this planned for inclusion 
into
> struts and if so is there a more recent version?


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

Reply via email to