Koen, It is possible to run the Java Client API as a separate bundle. However, I think it is better to handcraft the bundle itself, as it proved to be quite easy. Further, you have several options when it comes to managing it's dependencies; either have all the dependencies bundled (pun not intended!) in the same as the Client code itself, or have each and every one as a separate bundle. I would prefer the last one.
As OSGi honours versions, not only of bundles but packages as well, you can control which dependencies it will use. Even if you are, for some reason, forced to deploy several versions of the same dependency (if your framework is also exposing services requiring another version of e.g. Jetty). I would happily have provided an example, but currently we are in very busy period in the project I'm on - so that will have to wait ... All the best and good luck with your OSGi efforts! //Robert From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Hendrickx, Koen Sent: den 6 januari 2017 17:30 To: general@developer.marklogic.com Subject: [MarkLogic Dev General] running java-client-api in OSGI Hello all, I'm trying to run a camel component that uses the java-client-api to call marklogic from the apache karaf OSGI container. I'm using "bundle:install -s wrap:mvn:com.marklogic/java-client-api/3.0.5" to install a generated bundle, but I keep getting into problems with the dependencies. I'm not an expert in OSGI, and it looks like it could take a lot of time to get this right. Has anyone on this list maybe created an OSGI bundle for the java-client-api, or do you have any advice on how to get this to work? Thanks, Koen Hendrikx Wolters Kluwer | Motstraat 30 | BE-2800 Mechelen t: +32 15 36 17 62 | koen.hendri...@wolterskluwer.be<mailto:firstname.lastn...@wolterskluwer.be> [cid:image003.jpg@01CFD808.BC3A2960] Deze e-mail kan informatie bevatten met een vertrouwelijk karakter. Zij is uitsluitend bestemd voor de persoon of entiteit waarvan de naam hierboven is vermeld. Gelieve Wolters Kluwer op de hoogte stellen indien u dit bericht per vergissing ontvangt en de e-mail van uw systeem te wissen. Elke volledige of gedeeltelijke kopie, vertaling, wijziging of verspreiding van de informatie die u via deze e-mail ontvangt, is in elk geval verboden tenzij met schriftelijk en voorafgaand akkoord van Wolters Kluwer. Wolters Kluwer Belgium NV , Motstraat 30, 2800 Mechelen, BE 0405.772.873. Le présent e-mail peut contenir des informations à caractère confidentiel. Il est destiné à l'usage exclusif de la personne ou de l'entité susmentionnée. Si vous avez reçu ce message par erreur, veuillez en informer immédiatement par retour Wolters Kluwer et effacer l'e-mail de votre système. Toute copie, traduction, modification ou diffusion, intégrale ou partielle, des informations reçues par le biais du présent e-mail est strictement interdite, sauf accord préalable et écrit de Wolters Kluwer. Wolters Kluwer Belgium S.A., Motstraat 30, 2800 Mechelen, BE 0405.772.873
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general