Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity bean,session bean

 
Vandiyadevan senthan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
When could one use entity bean?when could one use session Bean?can we use entity bean with session bean at which situation?
your help is highly appreciated!!!
regards,
vandiyadevan senthan.
 
Sri Basavanahally
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Entity Beans to create an object-relational mapping. It boils to doing database access via objects.
Session Beans are used for business methods (calculate interest rates, for example). You could use a combination of session and entity beans, if you want.
A lot of people stay away from entity beans(including me...) and just use session beans, but, entity beans are good and are used quite a bit. You may want to read up on EJB design patterns to learn more about how and when to use the two types.
-Sri
 
Vandiyadevan senthan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sri Basavanahally,
Thank you very much for your reply.
regards,
Vandiyadevan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic