Apr 15th, 2008, 11:07 AM
Config & Code Autogeneration ?
I do need to auto generate the config files, setter & getter methods in bean class and related java code changes. Is it possible through code generator like Xdoclet ? or anything else ?
Pls help. If its not possible. pls give some ideas.
Apr 15th, 2008, 11:19 AM
I don't think this is really a Batch question, but before you go off to ask the question in another forum, let me just say this: config file generation is not mainstream and not really best practice. For the kinds of use cases you seem to need most people use an IDE (Spring IDE is the best).
Apr 15th, 2008, 11:00 PM
Apr 16th, 2008, 12:29 AM
Is it possible to use Xdoclet(code generation) for this type of situation?
Apr 16th, 2008, 01:28 AM
I guess. I would prefer just to output a .properties file though (much easier to work with, and Spring has some tools to help you), and then use that to complete the runtime configuration with a PropertiesPlaceholderConfigurer. Would that work?
Apr 16th, 2008, 02:28 AM
thx for your input.
I need clarification about the config files.
Is it necessary to have a individual property file for each job ? For example, if two jobs starts same time, need to create properties dynamically from DB.
Can we do scheduling with the single Spring Bean XML file and Property file through PropertiesPlaceholderConfigurer ?
How can i add / delete setter & getter methods in Domain Object when changes happens in the property file ?