karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: bundle dependency: What is the way to deploy the bundles
Date Fri, 16 Dec 2011 11:50:02 GMT
Hi Guofeng,

the best way is to create a feature in which you can define the start order:

- feature A with your bundle A
- feature B define a dependency to feature A

This features XML could be package in a kar.


On 12/16/2011 11:53 AM, Guofeng Zhang wrote:
> Hi,
> I have a kar, and a jar bundle which will import the packages from the kar.
> When I copy both the kar and the jar to the deploy directory of fresh
> Karaf installation (no data directory created), then run Karaf, it seems
> that the jar is first deployed and the import cannot be met.
> If I first run Kara, then copy the kar to the deploy, and then copy the
> jar, no resolver issue complained and the application works well. The
> late time re-launch Karaf, the application still work without any
> problem (refer to resolver problem).
> In the case, what is the best way to deploy my application on Karaf?
> Thanks
> Guofeng

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message