Re: Experimenting with Karaf 5

2022-04-29 Thread Jean-Baptiste Onofré
Hi Matteo,

It sounds like a very interesting use case. Let me "push" K5 and merge
the latest updates I did on the project.

Thanks !
Regards
JB

On Fri, Apr 29, 2022 at 9:37 AM Matteo Rulli  wrote:
>
> Thank you JB,
>
> I’ll set up a project in and I’ll open a PR as soon as it is (sort of ☺) 
> working.
>
> There are couple of things we usually use in our apps such as weaving hook + 
> byte-buddy and ConfigurationPlugins that will be interesting to test as well, 
> but let us do one step a time.
>
> Thank you very much,
> Matteo
>
> > On 28 Apr 2022, at 19:21, Jean-Baptiste Onofré  wrote:
> >
> > 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  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
>


Re: Experimenting with Karaf 5

2022-04-29 Thread Matteo Rulli
Thank you JB,

I’ll set up a project in and I’ll open a PR as soon as it is (sort of ☺) 
working.

There are couple of things we usually use in our apps such as weaving hook + 
byte-buddy and ConfigurationPlugins that will be interesting to test as well, 
but let us do one step a time.

Thank you very much,
Matteo

> On 28 Apr 2022, at 19:21, Jean-Baptiste Onofré  wrote:
> 
> 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  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



Re: Experimenting with Karaf 5

2022-04-28 Thread Jean-Baptiste Onofré
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  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


Experimenting with Karaf 5

2022-04-28 Thread Matteo Rulli
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