What is it? ----------- If you've followed recent discussions on the struts-user list. There has been a flurry of discussion over getting ApplicationResources messages from a database.
I have finally finished a release of an implementation of MessageResources that grabs the key-value pairs from a database. It uses the popular (and FREE) O/R Mapping Tool OJB for the persistence layer, so if you are already using it, or considering it in the future, it will fit seemlessly into your project. Setup is easy and converting your current application should take no more than an hour. Most of the work is getting your .properties file into the database. Databases supported are only limited by what OJB supports. It currently supports every major vendor. What can it do? --------------- - As mentioned above, storing and retrieving your application resources from a RDBMS - Full support for Locale and Sub Application Modules - Configurable database mapping (OJB style) - Changes are immediately available to your application, when using OJB's persistence broker to modify them. (I will have samples of doing this soon.) Where can I get it? ------------------- I've posted a zip file on my server which will extract into a buildable project that I've setup which is the struts-example (1.1b) modified to use this extension. For detailed setup, please read the readme.txt in the project-files folder. I have tested this on Tomcat 4.0.4, JBoss3.0.3 w/embedded Tomcat 4.1.12, and Tomcat 4.1.12 using MySql database. Full database scripts are provided. To download, go to: http://www.open-tools.org/struts-atlanta/downloads *If my DSL craps out on me, just shoot me an email, and I'll send it to you via e-mail. ToDo Items: ----------- - Convert the code to load as a struts plugin for better management and lifecycle support. - Administrative actions/jsp (possibly a subapp) for managing the data. - Conversion utility to parse a .properties file and create a .sql file. - Support for GlobalDebugMode, when this is enabled, all messages are returned as "###" or some configurable value. This helps on large projects when, under pressure of time contraints, developers quickly (and without meaning to - Honest;) hard code values while cranking out code, and can assist in quickly determining if all messages are actually coming from the bundle. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>