Re: JPA (Hibernate) with Apache Karaf 4.2

2018-05-29 Thread Kerry
Hi Alex, I've created a simple project that shows how to use JPA in Karaf although it uses OpenJPA as the JPA provider: https://github.com/jtkb/jpatest Hopefully it will be straight forward enough for you to get to grips with JPA in an OSGi environment. Kerry On 29/05/18 19:54, alex09

Re: JPA (Hibernate) with Apache Karaf 4.2

2018-05-29 Thread François Papon
Hi Alex, We have already start example in a dev guide and planned to released it in the 4.2.1 or Karaf. You have a preview on the JB repo : https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples There is JPA example working with Hibernate. Hope it can help and you are welcome to

JPA (Hibernate) with Apache Karaf 4.2

2018-05-29 Thread alex09
Hi there, being new to OSGi, I have difficulties getting demos/examples/tutorials to run (esp. with JPA) with Apache Karaf 4.2. I tried all these resources: * Apache Aries 2.7 JPA examples: https://github.com/apache/aries-jpa/tree/master/examples (also user documentation is not accurate for the

Re: REST - Declarative Services

2018-05-29 Thread Scott Lewis
On 5/28/2018 10:40 AM, Guenther Schmidt wrote: Hello All, I’ve been developing services using Declarative Services for dependency injection and it was a breeze so far. Now I want to expose some of the functionality via a REST API and I’m stuck. So far I’ve deployed my bundles through

Re: REST - Declarative Services

2018-05-29 Thread Steinar Bang
> Guenther Schmidt : > Then there’s also the requirements to “feature” install cxf. That’s OK > btw, I only have to do that once. But is there really no simple way to > create a simple REST service using merely DS? Take a look at these two: https://github.com/steinarb/post-body-capture

Re: REST - Declarative Services

2018-05-29 Thread Alex Weirig
BTW: these should be the features I installed in karaf ... feature:repo-add cxf-dosgi feature:install cxf-dosgi-provider-rs Mat frëndleche Gréiss, Mit freundlichen Grüßen, Meilleures salutations, Kind regards, Alex Weirig Responsable Technique Ville de Luxembourg Service Enseignement Centre

Re: REST - Declarative Services

2018-05-29 Thread Alex Weirig
I'm using the approach Christian is referring to and I can confirm that it's really easy and convenient. I'm creating DS services to expose selected backend services with a REST API @Component(         immediate = true         , property = {                 "service.exported.interfaces=*",