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

Hibernate and session bean

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Newbie for Hibernate. It seems Hibernate can replace entity bean. How about session beans ? How can they be replaced ? The reason why I am asking this is --- EJB needs application support but Hibernate doesn't. This means I can get rid out application server part. But how can I get rid of the session beans ? Do you think I can use a combination of Hibernate and session beans ? That sounds weired... For those of you using Hibernate, how do you take care of the session beans you developed before while you try to replace your entity beans by Hibernate ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It seems Hibernate can replace entity bean. How about session beans ?

Hibernate can't replace Sesison Beans. Hibernate is just an ORM tool, its doesn't do any of the other fancy things that EJB's can do.


How can they be replaced ?

With Servlets, Spring, your own Java app. etc. Whatever fits your requirements.


Do you think I can use a combination of Hibernate and session beans ?

Absolutely. This is a pretty good combination - your get all the container services of EJB's without the unpleasantness of Entity Beans.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic