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
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
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
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
> 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
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
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=*",