• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb vs. servlet/jsp

 
Jason Kretzer
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been doing web development for a while now. However, I have only been using servlets and jsp. I looked at ejb but they seemed to complicated to do what servlets and jsp already does. Would some kind soul enlighten me on why one would use ejb over servlet/jsp? Or the other variations of this question, servlet/jsp alone vs. ejb in combination with servlet/jsp.
All I have been able to gather is that "for enterprise, use ejb" but with no explanation as to why... Also does this book cover such a thing?

Best Regards,
[ October 28, 2003: Message edited by: Jason Kretzer ]
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be better if you post this question in the EJB/J2EE forum.
This link may help
http://www.coderanch.com/t/311948/EJB-JEE/java/ejb-servlets
I am sure you will find more if you please search.
 
Brian Nice
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBs will allow you to concentrate more on your business logic, rather than such things as persistence, security, transaction management, and bean pooling. All this is offered by the container. If your app is relatively simple, then you can usually do all this yourself and EJB is probably overkill.
Brian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic