OK for the example. For the second point, it’s exactly the target of Karaf5: a runtime/launcher able to run multiple spring boot apps (and even mixing spring boot apps with osgi or micro profile ones).
I fully agree with your latest statement: "Possibly highlighting that we can modularize our applications using our favorite development framework and leverage Karaf runtime for a wider inter application contracts , cross cutting concerns etc.". You got exactly the idea/target of Karaf5 ;) Regards JB > Le 26 févr. 2021 à 08:19, Som Shankar Bhattacharyya > <[email protected]> a écrit : > > Yes. I think that will be super useful to have an example that just > works by bundling a spring boot app as a bundle and launch. > But , for a good out of the box recipe one quick sell(to the java > microservices world) could be to establish an example where we have > two(or more) spring boot apps deployed as modules leveraging karaf > flavors. > Possibly highlighting that we can modularize our applications using > our favorite development framework and leverage Karaf runtime for a > wider inter application contracts , cross cutting concerns etc. > > > On Fri, Feb 26, 2021 at 11:50 AM Jean-Baptiste Onofre <[email protected]> > wrote: >> >> By the way, it’s always possible to package the spring boot app as a bundle >> (mostly using private package), and add a activator to launch the spring >> boot app. >> >> That’s pretty simple (I can add an example to show that). >> >> However, we don’t leverage the Karaf flavors here (the service registry and >> Karaf features) as each spring boot app is in its own isolated class loader >> and Karaf is a launcher. >> It could be interesting anyway though ;) >> >> I will add an example for wrapping build + launcher in Karaf. >> >> Regards >> JB >> >> Le 24 févr. 2021 à 19:00, Jean-Baptiste Onofre <[email protected]> a écrit : >> >> I will share all details on the mailing list soon. >> >> Regards >> JB >> >> Le 24 févr. 2021 à 18:39, Som Shankar Bhattacharyya >> <[email protected]> a écrit : >> >> Where can I look for that next week ? That will be super useful to see while >> I keep learning the other use cases. >> >> On Wed, Feb 24, 2021 at 10:45 PM Jean-Baptiste Onofre <[email protected]> >> wrote: >>> >>> Hi, >>> >>> Spring boot support in Karaf is not yet available out of the box. It will >>> be available in Karaf 5 (in preparation). >>> >>> If you wanna try, you will be able to take a look end of next week. >>> >>> Regards >>> JB >>> >>>> Le 24 févr. 2021 à 18:09, Som Shankar Bhattacharyya >>>> <[email protected]> a écrit : >>>> >>>> Hello, >>>> I am learning Karaf and I think it has excellent potential for use at >>>> various places. I was looking to put together a quick example of using >>>> spring boot apps as modules on Karaf/ >>>> I cannot find one. Can someone point me to a guide or example ? >>>> >>>> Thanks. >>> >> >>
