Thanks Peter,
I actually got that working and used it to implement a MySQL backend for
Felix UserAdmin. But know I want to switch to JPA, because for bigger
object structures it gets quite complicated to do it all with JDBC only.
Unfortunately I cant get this reference

@Reference EntityManagerFactoryBuilder emfb;

to be resolved. That's why I was asking for an example.

-Henrik

Am 07.09.2016 um 18:34 schrieb Peter Kriens:
> You could take a look
> at https://github.com/osgi/osgi.enroute.examples.jdbc
>
> It wasn’t completely finished and reviewed but I think it works.
>
> Kind regards,
>
> Peter Kriens
>
>> On 7 sep. 2016, at 18:33, Henrik Niehaus <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Does anybody have a working example for tx-control with JPA? I know
>> there is a brief explation at [1], but I'm struggling with the
>> configuration and don't exactly know, which dependencies to use. It
>> would be very nice, if someone could provide a small self contained code
>> example (preferably a bnd workspace).
>>
>> BR
>>
>> -Henrik
>>
>> [1] http://aries.apache.org/modules/tx-control/localJPA.html
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> [email protected] <mailto:[email protected]>
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to