karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: deploying a war with dependencies in bundled jars
Date Sat, 10 Jan 2015 20:16:59 GMT

ok, so far so good, the wab looks fine, but your provider and domain jars
aren't osgi bundles.
You should make sure those are OSGi bundles first.
On the other hand you seem to have a high coupling with those two jars, why
don't you just embed those then?
Especially since you don't use any services I guess the best would be to
start with one "uber" bundle first.
After that start extracting your services for reuse. Always make sure to
have low coupling between bundles and high cohesion inside your bundles.

regards, Achim

2015-01-10 19:50 GMT+01:00 jefoy1101 <jefoy1101@gmail.com>:

> HI Achim here is the sample project
> From the sample project it's the helloworld servlet that I have
> instantiated
> the singleton from my provider.jar that call another function inside the
> domain.jar, there is also a call for hello(String name) inside it.
> sample war with external jar implementation
> <https://github.com/jj110178/agkaraf>
> provider.jar
> <http://karaf.922171.n3.nabble.com/file/n4037741/adgateway-provider-3.jar>
> domain.jar
> <http://karaf.922171.n3.nabble.com/file/n4037741/adgateway-domain-3.jar>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/deploying-a-war-with-dependencies-in-bundled-jars-tp4037488p4037741.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

View raw message