Create Database from javax.sql.DataSource?

10 views
Skip to first unread message

Eric Jain

unread,
Mar 1, 2011, 7:39:50 PM3/1/11
to SolidBase User
Tried writing a Spring bean that does the equivalent of SolidBase's
UpgradeTask. I don't have access to the database driver and user name
etc at that point, just a DataSource. But it looks like
solidbase.core.Database (which the PatchProcessor relies on) won't
work with that?

René de Bloois

unread,
Mar 2, 2011, 11:10:46 AM3/2/11
to solidba...@googlegroups.com
Eric,

True, that's a use case I didn't expect. Hopefully, I should be able to add this tonight.

Other possibility is to subclass the Database class and override getConnection(). Did you try that already?

Are you sure that the connection obtained from this datasource has enough privileges to do what you want?

Regards,
René

Reply all
Reply to author
Forward
0 new messages