Pascal Klink
2014-03-26 15:55:37 UTC
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi everyone!</div>
<div> </div>
<div>Im currently trying to create an OSGI based Web Application which is designed to work the following way:</div>
<div> </div>
<div>There exists a Database which can be accessed through an OSGI service (which is a DataSource). There exists a WebServer (Grizzly) which waits for HttpHandlers to be published as OSGI Services and then registers them. Finally there can exist multiple HttpHandler Services which will perform actions on the database or server static content.</div>
<div> </div>
<div>The problems which are slowly exasperating me are the OSGI dependencies of the Jersey modules (server, client, common, container-grizzly2-http). When creating the bundle, those jars create a huge amount of dependencies from which some cannot be resolved at startup.</div>
<div> </div>
<div>So the question is: Can anybody tell me how to properly create bundles of those jersey modules which export their jersey packages and can be deployed in an osgi container (I'm using karaf) without relying on any other packages? Because then I could just import the corressponding packages in my bundles and would not have to deal with the dependencies of the modules. I'm using the maven-bundle-plugin in order to create the bundles.</div>
<div> </div>
<div>Thanks in advance for your help,</div>
<div>Pascal</div></div></body></html>
<div> </div>
<div>Im currently trying to create an OSGI based Web Application which is designed to work the following way:</div>
<div> </div>
<div>There exists a Database which can be accessed through an OSGI service (which is a DataSource). There exists a WebServer (Grizzly) which waits for HttpHandlers to be published as OSGI Services and then registers them. Finally there can exist multiple HttpHandler Services which will perform actions on the database or server static content.</div>
<div> </div>
<div>The problems which are slowly exasperating me are the OSGI dependencies of the Jersey modules (server, client, common, container-grizzly2-http). When creating the bundle, those jars create a huge amount of dependencies from which some cannot be resolved at startup.</div>
<div> </div>
<div>So the question is: Can anybody tell me how to properly create bundles of those jersey modules which export their jersey packages and can be deployed in an osgi container (I'm using karaf) without relying on any other packages? Because then I could just import the corressponding packages in my bundles and would not have to deal with the dependencies of the modules. I'm using the maven-bundle-plugin in order to create the bundles.</div>
<div> </div>
<div>Thanks in advance for your help,</div>
<div>Pascal</div></div></body></html>