Hi,
I saw that Apache Derby has a bundle activator. What they do is load
the driver when activating the bundle, and unload it when
deactivating. I think that makes sense for H2 as well (so that you can
upgrade the database without having to restart the virtual machine).
So what I did is: I created a bundle activator for H2 that loads the
JDBC driver when activating, and unloads it when deactivating. The
activator is called 'org.h2.tools.DbDriverActivator'. The meta data in
MANIFEST.MF is:
Bundle-Activator: org.h2.tools.DbDriverActivator
Bundle-Name: H2 Database Engine
Bundle-Vendor: H2 Group
Bundle-Version: ${version}
DynamicImport-Package: *
Export-Package:
org.h2,org.h2.api,org.h2.fulltext,org.h2.jdbcx,org.h2.tools,org.h2.util
Do you think that makes sense?
The source code is in the SVN repository:
http://code.google.com/p/h2database/source/checkout
Regards,
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---