-
1. Re: Best way to insert an old app into fuse
davsclaus Feb 6, 2012 12:03 AM (in response to rogelio_sevilla1)Have you tried a WAR with all the old JARs embedded.
-
2. Re: Best way to insert an old app into fuse
rogelio_sevilla1 Feb 6, 2012 1:50 PM (in response to davsclaus)Haven't tried that, I will check that way. Thanks for the answer mr. Claus.
-
3. Re: Best way to insert an old app into fuse
davsclaus Feb 7, 2012 2:52 AM (in response to rogelio_sevilla1)If you install from the shell, then there is a special war url handler. See docs here
http://fusesource.com/docs/esb/4.4.1/esb_deploy_osgi/UrlHandlers-War.html
-
4. Re: Best way to insert an old app into fuse
rogelio_sevilla1 Feb 22, 2012 11:16 AM (in response to davsclaus)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.
-
5. Re: Best way to insert an old app into fuse
davsclaus Feb 22, 2012 11:25 AM (in response to rogelio_sevilla1)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.
-
6. Re: Best way to insert an old app into fuse
rogelio_sevilla1 Feb 27, 2012 1:25 PM (in response to davsclaus)Definitely easier :-D, thanks a lot mr Claus.