On 19. apr. 2012, at 16:11, Christian Schneider <[email protected]> wrote:

> I guess the suggested way is to not run hibernate :-) For me the fact that 
> they do not create bundles says that jboss does not care about OSGi in 
> hibernate. As they now have an OSGi server with JBoss 7 that may change soon 
> though.

I just looked at JBoss website and their support is not even in dipers. See 
https://issues.jboss.org/browse/JBOSGI-260. 

> I had some good experience with apache openjpa together with apache aries 
> jpa. Together they solve the classloading problem where the jpa provider can 
> not see the user classes. I have not built bigger applications with it though.

I will try with OpenJPA, but would really like to hear other people's hibernate 
stories!

> 
> There is also Eclipselink. With their affiliation to Eclipse they will surely 
> have an eye on OSGi compatibility. The problem there was that they did not 
> put their jas into the maven central repo.
> 
> So all in all I am not sure what to recommend. Perhaps others already have 
> experience with some jpa solution in bigger projects?

Please share some stories to make my decision easier.

Borut

> 
> Christian
> 
> Am 19.04.2012 15:56, schrieb Borut Bolčina:
>> Thanks Christian,
>> 
>> I understand now what you were suggesting. The database type (vendor) will 
>> be the same in all environments (mysql), but with different addresses, 
>> engine types, usernames and passwords, which brings another topic up - 
>> configuration (I will probably ask this in days to come).
>> 
>> I will be separating datasources, it is just the case that I want a working 
>> solution and then smooth it out.
>> 
>> For a begginer it is very hard to get a hibernate mysql combo to work (mine 
>> still does not). There are examples for persistence, but I had to read a lot 
>> until I found that Hibernate does not even has bundles, therefore tricks has 
>> to be performed.
>> 
>> Is there "an official Karaf Hibernate Feature"? If not, what is the 
>> suggested way to run Hibernate in Karaf? I am planning to use Hibernate 
>> Search, Solr and Lucene by using Camel components, so I have lots of ground 
>> to cover.
>> 
>> Cheers,
>> borut
>> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
> 

Reply via email to