Good orm for osgi
I'm looki开发者_开发百科ng for java orm with good osgi support. I've read hibernate but some problems occurs when it comes to class loading.
Use Aries JPA, it works will all/most JPA providers, for a tutorial see here
EclipseLink works nicely in OSGi and is well documented, but the Aries JPA project allows you to be vendor independent and switch them out easily.
If you're using Karaf there are already features for Aries transaction and JPA.
You can try Eclipse Link. I have not tried it with OSGi, but they have instructions how to install it under OSGi environment (here), so I assume it should work.
I have used myBatis and it works well.
I'm probably a lone voice in this, but I'm using Hibernate very successfully with Karaf and a number of different databases. Now, I'm not saying it was easy, but I was able to document the steps I had to take to use Hibernate in Karaf on my blog If you decide to use Hibernate and run into any issues, let me know and I'll be happy to help.
精彩评论