Hi Kevin, Unfortunately you are correct that DB2 doesn’t provide an OSGi-enabled version of its driver, however it is possible to make it work (with a little effort).
Implementing the JDBC Service specification yourself is pretty trivial (all you need to do is to register a single service implementing up to four methods), and would allow you to embed the DB2 driver in the bundle that you write. There is also a JDBC service implementation at PAX-JDBC <https://ops4j1.jira.com/wiki/spaces/PAXJDBC/pages/104103940/DB2+driver+adapter>, however this still requires you to wrap the DB2 Jar into an OSGi bundle. I hope this helps, Tim > On 2 Jan 2020, at 13:37, Matthews, Kevin via osgi-dev > <osgi-dev@mail.osgi.org> wrote: > > Hello, we are looking to modularizing our legacy application using OSGI to > connect to DB2 database . Has anyone successfully use OSGI enroute to connect > to a DB2 database? I have used PostgreSQL and MySQL which already comes with > OSGI bundle manifest but it seems DB2 doesn’t have the bundle manifest. > > Thanks, > > Kevin Matthews > Sr Application Analyst – Rapid Connect Development > Global Business Solutions > Office: 954-845-4222 | Mobile: 561-465-6694 > kevin.matth...@fiserv.com <mailto:kevin.matth...@fiserv.com> > > <image001.png> > > Fiserv <https://www.fiserv.com/> | Join Our Team > <https://www.careers.fiserv.com/> | Twitter <https://twitter.com/fiserv/> | > LinkedIn <https://www.linkedin.com/company/fiserv/> | Facebook > <https://www.facebook.com/Fiserv/> > FORTUNE Magazine World's Most Admired Companies® 2014 | 2015 | 2016 | 2017 | > 2018 | 2019 > © 2019 Fiserv, Inc. or its affiliates. Fiserv is a registered trademark of > Fiserv, Inc. Privacy Policy > <https://urldefense.proofpoint.com/v2/url?u=http-3A__fiserv.com_about_privacypolicy.aspx&d=DwMGaQ&c=ewHkv9vLloTwhsKn5d4bTdoqsmBfyfooQX5O7EQLv5TtBZ1CwcvjU063xndfqI8U&r=DhuxLF27WYthG-oLriBpSFsbSw1I5i2d895wxh8VY20&m=BIEknoCR_FKxnPpOj0Y-Bee0m8jPof-E79bKGvU0u9U&s=b7HNbknTsxVdKPi_kXbH7pz31TqQJrr_tXTxCa1kKPI&e=> > > > > > > The information in this message may be proprietary and/or confidential, and > protected from disclosure. If the reader of this message is not the intended > recipient, or an employee or agent responsible for delivering this message to > the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. If you > have received this communication in error, please notify Fiserv immediately > by replying to this message and deleting it from your computer. > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org> > https://mail.osgi.org/mailman/listinfo/osgi-dev > <https://mail.osgi.org/mailman/listinfo/osgi-dev>
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev