Hi, I have no direct experience with Hibernate in Servicemix, but I've recently faced many issues while trying to use JPA with Eclipselink and it was not easy at all to get it working!
I came to the conclusion to use "spring-orm" within servicemix, it seems to me the more stable way to use JPA. This requires to use spring-orm to build an EntitiyManagerFactory and inject into my application. For this I faced two main issues: - I didn't achieved to have Eclipselink work with dynamic weaving, so I needed to disable it. - Spring-Jdbc does not import by default MySQL JDBC driver, so I needed to: - use a OSGi fragment to extend Spring-JDBC - or use Apache Common DBCP I did shared some sample code of my experiments on github: https://github.com/cristcost/spring-orm-eclipselink-sample Spring-orm could be used also with Hibernate, but I have only tested with Eclipselink Also my sample code is not a web application, but I hope it could help. Cristiano 2013/9/4 abdulshameer <[email protected]> > We are trying to integrate Hibernate in servicemix. We had a sample JSF > page > where we use this hibernate. It is working fine in tomcat. But when we dont > know how to configure hibernate in servicemix?any idea > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Establishing-a-JDBC-connectivity-to-database-in-servicemix-tp5717731p5717738.html > Sent from the ServiceMix - Dev mailing list archive at Nabble.com. >
