Hi Matteo,

You have two approaches to implement what you propose:
- Karaf 4 style deployed in Karaf5: K5 OSGi application manager will
deploy the Karaf4 features service, and so you can use the same thing
as in K4. You will see K4 distribution in K5 doing that.
- Karaf 5 style, you implement your own K5 SPI
- you use another approach like CDI, Spring Boot

I'm going to push K5 as a branch on the main Karaf repo. Anyway, you
can submit your example directly on https://github.com/jbonofre/karaf5
(in an example module for instance)

If you want, we can have a chat together about that.

Thanks for your help anyway !

Regards
JB

On Thu, Apr 28, 2022 at 6:59 PM Matteo Rulli <matteo.ru...@gmail.com> wrote:
>
> Hello,
>
> I would like to start playing with Karaf5, waiting for the official RC... 
> With the final goal of migrating a few OSGi 3-tier projects (Hibernate, 
> Declarative Services, Apache CXF REST) to Karaf-5 my idea is:
> - Put together a very trivial JPA+CXF project using "Karaf-JPA-example" and 
> "Karaf-rest-example" in Karaf's examples module
> - Create a feature for the complete "demo application"
> - Run this application in Karaf-5, deploying the application feature.
>
> The lesson learned will be used in the actual migration process. Before I 
> start working head-down on this, I would like your advice: is this approach 
> going to work with Karaf 5? Or is there any evident show-stopper I should be 
> aware?
>
> Many thanks for your help.
>
> Best regards,
> Matteo

Reply via email to