This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Performance for Hibernate vs JPA(Hibernate) Jboss Help needed  RSS feed

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As part of our new project, am doing analysis on performance of ORM tools. I compared two
1 . JPA(Hibernate) in JBOSS 5
2. only Hibernate.

I had inserted some records using the same and found that JPA(Hibernate) is performing well(taking less time) than Hibernate.


My Assumption on JPA(Hibernate) in JBOSS 5 :
Jboss 5 JPA(Hibernate) is nothing but JPA API is implemented to use Hibernate in background. which is an additional Layer.

But how come JPA(Hibernate) with additional layer is performing well than only Hibernate...

Please help me out..

Ashok
SCJP1.4,SCWCD 1.4, SCBCD5, XML Cer - Test 142
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lots of factors. What JVM tuning have you done on your stand-alone to match what JBoss AS has?

There is no added layers, Hibernate is an implementation, so both are running Hibernate code, so they are identical in that regard. So that just leaves the container on the outside that is different. JVM tuning is my first guess.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!