thank you everybody, I was currently bundleling the drivers and so on... JPA
seems to be a great soluction.

has anybody tried to use osgi with JPA? How can make it run? I don't really
understand the example of the web
http://www.dynamicjava.org/projects/dynamic-jpa.

As far as I have seen , you need to define your entity, your persistent xml
file and also use /org.dynamicjava.jpa-api-1.0.jar ...
I guess , the driver must be also deploy somehow ... but I don't get it
working ...

could anybody help me? Where can i finde extra information about that?

thank you once more!


Miguel
Sent from Madrid, Spain

On Wed, Dec 23, 2009 at 2:09 PM, tommy <[email protected]> wrote:

> I bundled every jdbc driver , create some connection bundles for these
> bundles, then use dbcp bundle to access database,
> if i want to switch other database, just start the connection bundle of
> database  which want to connect, stop the others.
>
> i think JPA is good solution.
>
> best regards
> Tommy
>
> Wed, Dec 23, 2009 at 10:08:49AM +0000, David Bosschaert wrote:
> > I would suggest using JPA, this is part of the OSGi Enterprise release
> > and there are several implementations of this already available.
> > See http://www.osgi.org/download/osgi-4.2-enterprise-early-draft4.pdf
> >
> > Best regards,
> >
> > David
> >
> > Miguel wrote:
> >> hi all,
> >>
> >> I am looking for the best way to implement a database access using
> >> OSGI standard API. I know that spring has several developments to
> >> access databases whatever the database is.
> >> Is there any current developments like these spring frameworks to make
> >> easier the interaction with databases?
> >>
> >>
> >> best regards,
> >>
> >> Miguel
> >> Sent from Madrid, Spain
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> 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
> _______________________________________________
> 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