I remember improving performance when I configured hibernate under a snapshot 2.0 build. I just reran PingPong with and without hibernate, and there isn't much difference between snapshot 2.0 w/ Hibernate and release 1.0 w/ openJPA.
That being said, with the Ode 1.0 default config I get a ton of these on the servicemix console each time I run the PingPong test: INFO - Query - This query on type "class org.apache.ode.dao.jpa.ScopeDAOImpl" must load the entire candidate class extent and evaluate the query in-memory. This may be very slow. The query must be executed in memory because OpenJPA is configured with IgnoreCache=false and FlushBeforeQueries=false and there are dirty instances that may affect the query's outcome in the cache. I've tried deleting the contents of $SERVICEMIX_HOME/data/* before starting up servicemix, but I still get those dirty instance warnings. The kind of things I'll be deploying in the near term don't need persistence so I can get away with the in-memory setting in the BPEL process deployment descriptor. I guess if I need a faster performing data store I should use a different database. Is mysql faster than derby? Thanks, Dan On 7/2/07, Matthieu Riou <[EMAIL PROTECTED]> wrote:
Hey Dan, About this, I'm just wondering why you'd want to use Hibernate? We've spent a lot of time replacing Hibernate with OpenJPA (for the licensing reasons mentioned by Maciej) and our Hibernate modules are going to get more and more deprecated as time passes, so I wouldn't invest too much on it. Is there any problem with OpenJPA that makes it unusable for you? Thanks, Matthieu On 7/2/07, Dan <[EMAIL PROTECTED]> wrote: > > Hi Maciej, > > I've created ODE-151, and yes, all components (servicemix, ode, hibernate) > were final releases. > > Thanks, > Dan > > On 7/2/07, Maciej Szefler <[EMAIL PROTECTED]> wrote: > > > > Dan, > > > > I can't make out what the problem is off hand. I'll try to reproduce > > it. Can you file a Jira issue to track this? Also just to confirm, you > > are using ODE 1.0 final? > > > > Thanks, > > Maciej > > > > > > On 7/2/07, Dan <[EMAIL PROTECTED]> wrote: > > > Sorry, that should have read: > > > > > > This is the list I've compiled so far, but I must be missing > > something. The > > > Ode install and PingPong deployment don't generate any > > exceptions. However, > > > PingPong fails when a request is sent. The ServiceMix console shows > > > scheduler exceptions (attached). > > > > > > hibernate3.jar (3.2.4sp1) > > > dom4j-1.6.1.jar > > > cglib-2.1.3.jar > > > asm-1.5.3.jar > > > asm-attrs-1.5.3.jar > > > antlr-2.7.jar > > > ehcache-1.2.3.jar > > > junit-3.8.1.jar > > > > > > Thanks, > > > Dan > > > > > > > > > On 7/2/07, Dan < [EMAIL PROTECTED]> wrote: > > > > This is the list I've compiled so far, but I must be missing > > something. > > > The Ode install and PingPong deployment don't generate any exceptions. > > > because PingPong fails when a request is sent. > > > > > > > > hibernate3.jar > > > > dom4j-1.6.1.jar > > > > cglib-2.1.3.jar > > > > asm-1.5.3.jar > > > > antlr-2.7.jar > > > > ehcache-1.2.3.jar > > > > junit-3.8.1.jar > > > > > > > > > > > > > > > > > > > > On 7/2/07, Matthieu Riou <[EMAIL PROTECTED]> wrote: > > > > > Also don't forget to include Hibernate dependencies. On top of my > > head: > > > > > cglib, dom4j, asm, asm-attrs, antlr, ehcache and maybe a couple > more > > > that I > > > > > may have forgotten. > > > > > > > > > > Matthieu > > > > > > > > > > On 7/2/07, Maciej Szefler < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Dan, > > > > > > > > > > > > Yeah, META-INF/jbi.xml contains a series of class-path entries. > > You'd > > > > > > need to update that. > > > > > > > > > > > > -mbs > > > > > > > > > > > > On 7/2/07, Dan <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > > > > > > > > > I've tried including hibernate jars from v3.1.2 and v3.2.4 > > . Both > > > > > > failed, > > > > > > > but its that same exception where the jar doesn't seem to be > > found. > > > Is > > > > > > > there a descriptor somewhere that needs to be updated? I've > > just > > > been > > > > > > > putting the hibernate jar in the lib directory and then > zipping > > the > > > jbi > > > > > > > installer back up. > > > > > > > > > > > > > > Thanks, > > > > > > > Dan > > > > > > > > > > > > > > On 6/29/07, Maciej Szefler < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > You will need to manually include the hibernate jars in the > > jbi > > > > > > > > installer. These have been removed to comply with Apache > > > licensing. > > > > > > > > > > > > > > > > -mbs > > > > > > > > > > > > > > > > On 6/28/07, Dan <[EMAIL PROTECTED]> wrote: > > > > > > > > > I didin't see anything in Jira or any traffic on the list > > about > > > > > > > > hibernate. > > > > > > > > > Yet, I'm getting an exception when I try to use hibernate > > with > > > Ode > > > > > > 1.0on > > > > > > > > > ServiceMix 3.1. I've been using hibernate with a snapshot > > taken > > > > > > before > > > > > > > > the > > > > > > > > > 1.0 release. > > > > > > > > > > > > > > > > > > I've uncommented the hibernate lines in ode-jbi.properties > .. > > . > > > > > > > > > ode-jbi.db.emb.name=hibdb > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ode-jbi.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl > > > > > > > > > > > > > > > > > > Have I forgotten a step? > > > > > > > > > > > > > > > > > > Servicemix autodeployment error follows... > > > > > > > > > > > > > > > > > > INFO - AutoDeploymentService - > > > Directory: install: Archive > > > > > > > > > changed: processing ode-jbi-1.0-HIBERNATE.zip ... > > > > > > > > > INFO - ComponentMBeanImpl - Starting > component: > > > > > > > > OdeBpelEngine > > > > > > > > > INFO - ComponentMBeanImpl - Initializing > > component: > > > > > > > > > OdeBpelEngine > > > > > > > > > ERROR - ComponentMBeanImpl - Could not start > > > component > > > > > > > > > java.lang.NoClassDefFoundError: > > > org/hibernate/HibernateException > > > > > > > > > at java.lang.Class.forName0(Native Method) > > > > > > > > > at java.lang.Class.forName(Class.java:164) > > > > > > > > > at > > > org.apache.ode.il.dbutil.Database.createDaoCF( > > > > > > Database.java > > > > > > > > :258) > > > > > > > > > at > > > org.apache.ode.jbi.OdeLifeCycle.initDao(OdeLifeCycle.java > > > > > > > > :225) > > > > > > > > > at > > > org.apache.ode.jbi.OdeLifeCycle.init(OdeLifeCycle.java > > > > > > :101) > > > > > > > > > at > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init( > > > > > > > > > ComponentMBeanImpl.java:201) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart > > > ( > > > > > > > > > ComponentMBeanImpl.java:287) > > > > > > > > > at > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start( > > > > > > > > > ComponentMBeanImpl.java:216) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.InstallationService.install( > > > > > > > > > InstallationService.java:331) > > > > > > > > > at > > > > > > > > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive > > > ( > > > > > > > > > AutoDeploymentService.java:276) > > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory > > > > > > > > ( > > > > > > > > > AutoDeploymentService.java:645) > > > > > > > > > at > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200 > > > > > > ( > > > > > > > > > AutoDeploymentService.java :62) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run( > > > > > > > > > AutoDeploymentService.java:605) > > > > > > > > > at java.util.TimerThread.mainLoop (Timer.java :512) > > > > > > > > > at java.util.TimerThread.run(Timer.java:462) > > > > > > > > > Exception in thread "Timer-4" > java.lang.NoClassDefFoundError > > : > > > > > > > > > org/hibernate/HibernateException > > > > > > > > > at java.lang.Class.forName0(Native Method) > > > > > > > > > at java.lang.Class.forName(Class.java:164) > > > > > > > > > at > > > org.apache.ode.il.dbutil.Database.createDaoCF ( > > > > > > Database.java > > > > > > > > :258) > > > > > > > > > at > > > org.apache.ode.jbi.OdeLifeCycle.initDao(OdeLifeCycle.java > > > > > > > > :225) > > > > > > > > > at org.apache.ode.jbi.OdeLifeCycle.init > > > (OdeLifeCycle.java > > > > > > :101) > > > > > > > > > at > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init( > > > > > > > > > ComponentMBeanImpl.java:201) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart( > > > > > > > > > ComponentMBeanImpl.java:287) > > > > > > > > > at > > > > > > > > > org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start > > > ( > > > > > > > > > ComponentMBeanImpl.java:216) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.InstallationService.install( > > > > > > > > > InstallationService.java:331) > > > > > > > > > at > > > > > > > > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( > > > > > > > > > AutoDeploymentService.java:276) > > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory > > > > > > > > ( > > > > > > > > > AutoDeploymentService.java:645) > > > > > > > > > at > > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200 > > > > > > ( > > > > > > > > > AutoDeploymentService.java:62) > > > > > > > > > at > > > > > > > > > > > org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run > > > ( > > > > > > > > > AutoDeploymentService.java:605) > > > > > > > > > at java.util.TimerThread.mainLoop(Timer.java :512) > > > > > > > > > at java.util.TimerThread.run(Timer.java:462) > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > Dan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
