Hi. Yes, it is possible to use H2 within OSGi as is. But if H2 would register itself as a JDBC service in OSGi things can be made cleaner.
Admittedly few, if any, existing JDBC drivers implement the spec. So far I've implemented a simple wrapper for DB's that we have evaluated that implements the JDBC Service. I'll see if I can make the implementation more complete and integrated with H2, and wrap it up as a patch. I can't think of anything would break if this was added. BR/ pelle On Jul 8, 10:07 am, Thomas Mueller <[email protected]> wrote: > Hi, > > As far as I know, H2 can be used within OSGi without much trouble > (unlike other databases), as the jar file has a Bundle-Activator (the > org.h2.util.DbDriverActivator). So... are you sure you *need* the OSGi > JDBC Services Specification? > > Is there a database that _does_ support the OSGi JDBC Services > Specification out of the box? So far I found this: > > https://issues.apache.org/jira/browse/ARIES-122 > > http://svn.apache.org/viewvc/incubator/aries/trunk/samples/transactio... > > http://svn.apache.org/viewvc/incubator/aries/trunk/samples/transactio... > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=328310 > > http://laeubi-soft.de/artikel/osgi/jdbc-unter-osgi-nutzen.html > > Please tell me if you are interested to create a "JDBC Services > Specification" patch for H2. I wonder if it would cause no problems > for OSGi frameworks that don't support this specification. > > 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.
