Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anything in hibernate similar to EJB container.

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have just started with EJB. I read about EJB container which controls security, transactions etc. I would like to know is there anything in hibernate similar to this?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Hibernate is a much simpler thing than an application server, its just an ORM. The usual container provided services are way above and beyond the purpose of Hibernate. You can integrate it with something that provides these easily enough though.
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I have seen alot of comparisons between EJB and Hibernate. I am not able to understand why there is a comparison when they are not used at the same level. I mean when EJB is providing so many features and Hibernate is simple than that?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, you can always deploy your Hibernate application to an EJB container, and take advantage of Hibernate as an ORM tool, and take advantage of the features of an EJB container at the same time.
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then why people compare these two with each other?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it's because modern EJB containers support the Java Persistence API, JPA. Hibernate also supports JPA. So, I guess you have people using that as the start of the comparison. You know, 'they both support JPA, but these are other things an EJB container will do for you.'
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I got it! BTW your tutorials are too good
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic