concept data source in category spring

appears as: data source, data source, data sources
Spring in Action, Sixth Edition

This is an excerpt from Manning's book Spring in Action, Sixth Edition.

Here the addScript() and addScripts() methods set some String properties with the name of SQL scripts that should be applied to the database once the data source is ready. Whereas this is how you might configure a DataSource bean if you aren’t using Spring Boot, autoconfiguration makes this method completely unnecessary.

Spring Dynamic Modules in Action

This is an excerpt from Manning's book Spring Dynamic Modules in Action.

Figure 7.3. The elements involved in creating a data source and configuring OSGi within a data source component using Spring DM

Referencing a data source is like referencing any other OSGi service—you use Spring DM’s service support and its reference element. All data sources implement the DataSource interface and are registered under this interface, so the value javax.sql.DataSource must be used for the interface attribute, as shown in the following snippet:

Another brick in the wall of our database application! This simple client is a way to check if the data source is up and running, so that’s a good reason to play around with the data source service.