To weigh in on an old thread here, it should be optional as per the OSGi spec.
Optional dependencies are only required to use certain functionality - using h2's OSGi JDBC within OSGi is optional and therefore the dependency should be optional. Matt On Sunday, September 22, 2013 8:06:55 AM UTC+1, Christoph Läubrich wrote: > > It will work in the case you are using H2 directly, but will break the H2 > OSGi integration. If you are not using H2 special features, you really > should take a look at the OSGi JDBC spec since this will allow you to work > with JDBC in a complete driver indipendent way. > > Am 21.09.2013 00:53, schrieb John Zhu: > > Christoph, > > Thank you very much for the attached org.osgi.service.jdbc bundle example > and the link to the full bundle. > > In my Eclipse Luna RCP application, I found that just deleting the > org.osgi.service.jdbc import line in the manifest.mf inside > the h2-1.3-172.jar works as well. > > I hope this hack will not break h2, so far so good. > > > On Fri, Sep 20, 2013 at 1:12 AM, Christoph Läubrich > <[email protected]<javascript:> > > wrote: > >> find an example bundle attatched. It is using the official jdbc interface >> from the OSGi spec, source and licence are embedded in the jar. >> >> This only contains the JDBC part, you can also use the whole enterprise >> code jar seen here: >> http://www.osgi.org/Download/File?url=/download/r5/osgi.enterprise-5.0.0.jarbut >> that might provide more than you want/need so I prefere to split these >> things up in individual jars as provided in the example. >> >> Am 19.09.2013 17:15, schrieb hoppinjohnz: >> >> Christoph, >>> You are right. I have the same issue with h2-1.3-172 and Eclipse Luna >>> 4.4M1. >>> Can you be a bit specific? Do you have such a droppable bundle example >>> to share? >>> Thanks. >>> >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "H2 Database" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/h2-database/inE---y60-I/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/h2-database. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/groups/opt_out.
