Lazy-init or "null" data source?
Cantor, Scott
cantor.2 at osu.edu
Sun Jun 8 12:16:37 EDT 2014
On 6/8/14, 8:31 AM, "Rod Widdowson" <rdw at steadingsoftware.com> wrote:
>This seems OK to me, modulo debugging the config. How broken a
>configuration would this be (or how hard would the deployer need to work
>to
>break a config), and when they hit this situation of summoning up a bean
>with no data source what debugging would they get. I'm guessing that the
>doInitialize() call would have a log.error("No data source deployed") and
>sure that¹s enough?
They'd have to change a property, but the assumption is that the
DataSource name would be "PersistentIdStore", but that's also defined as a
property.
I suspect right now you'd get a "No Bean found" error, but I can change it
so that it would be a DataSource cannot be null error.
-- Scott
More information about the dev
mailing list