Hi folks,
I am in a position where I would like to prompt the user for some information before creating the bulk of my beans. For example, the username and password for connecting to a datasource.
Once I have that information, I can then go ahead and create the rest of the beans that my app needs. I do not anticipate changing the datasource during the lifetime of my app, so "reload" functionality is not required.
However, if there is a clean way of destroying and recreating the various beans when the datasource changes, that would be an option to consider.
What would the "best practice" approach to something like this be? For the moment, I have simply hard-coded the parameters for my datasource in the context.xml file.
Many thanks
Rogan


Reply With Quote