Have you tried a WAR with all the old JARs embedded.
Haven't tried that, I will check that way. Thanks for the answer mr. Claus.
Thanks a lot for the answer Mr. Claus. I was wondering, If I want to deploy a zip file with a bunch of jars, is there any way to deploy it like the war file??.
I mean, if I understand correctly, when a war file is deployed, the Bundle-ClassPath gets all the resources contained within the WEB-INF/lib folder, even if the jars in there are not bundles; that means that only the war bundle knows about these jars and packages.
This is the exact behavior I'm looking to recreate in this particular case, but without using a war file. I would like to know a way to isolate a group of jar files so that only a certain bundle know about their existence, without having to export all the packages and affecting the whole ESB environment on the way.
Would this be doable with a custom class loader???, any good resource you could point me to??
Thanks A LOT in advance for your time.
If your application is a zip file, how would you kick-start your application?
A WAR file is a wide-spread standard, and it does not have to be a web application. Just that there is a WEB-INF/web.xml to kick-start your application.
An alternative packaging would be a JEE application which can be a ZIP file. But then you can only deploy that into a JEE application server.
For OSGi there is works at the Apache Karaf project to support a KAR archive (its a zip file renamed as .kar instead). I think that is planned for Karaf 3.0.
For now I would recommend a WAR file. Everybody knows that, and there is tooling, websites, and whatnot that tells you how to work and package such an archive.
That said, we at FuseSource have on our roadmap to make it easier to deploy OSGi applications. So keep an eye out this year, when we have more details to share in the public.
Definitely easier :-D, thanks a lot mr Claus.