Thanks Tim, that helped a lot already. I could never have figured out
all these special instructions in the bnd files.

I can successfully run the ...dao.test as osgi framwork junit test. And
in my own application I'm also at the point that all dependencies of the
run descriptor can be resolved. I can also see, that hibernate comes up,
when I start the framework. But I still have no clue how to tie the
persistence unit and the datasource configuration together. So at the
moment hibernate is missing a datasource. I would like to be able to
configure a datasource with config admin and then somehow bind that DS
to the persistence unit.
It would be really kind of you, if you could have another look at the
example and adjust it, so that the application can be started without
errors.

Regards
Henrik

Am 08.09.2016 um 01:59 schrieb Timothy Ward:
> As requested:
>
>
> https://github.com/timothyjward/osgi.enroute.examples.jdbc/tree/jpa-example
>
> It’s a bit rough around the edges, but it sets up Hibernate, Aries
> JPA, Aries Transaction Control, and replaces the DAOs. The tests
> should all pass too.
>
>
> Regards,
>
> Tim
>
>
>> On 7 Sep 2016, at 09:40, Henrik Niehaus <henrik.nieh...@gmx.de
>> <mailto:henrik.nieh...@gmx.de>> wrote:
>>
>> 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 <henrik.nieh...@gmx.de
>>>> <mailto:henrik.nieh...@gmx.de>> 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
>>>> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
>>>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> OSGi Developer Mail List
>>> osgi-dev@mail.osgi.org
>>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to