Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB/JSP Architecture and Performance Discussion

Phil Thomas
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm fairly new to EJBs and I was wanting to start a thread to get everyone's experiences implementing EJB/JSP applications. I was mostly wanting to get input on a couple main topics:
1. Is it good practice to call EJBs directly from JSPs, or is it better to access regular JavaBeans that mirror EJB data as described in Sun's Blueprint book's use of WebImpl objects? I know there is slowed performance calling EJBs directly, but when how large/amount of traffic should a project have before it's justified to use this 'mirror bean' approach?
2. Does anyone have any thoughts on using stateless session beans as "controller" objects that access Entity Beans? In practice, is there a rule of thumb for the amount of logic that should be in an Entity Bean? Should a Session Bean contain logic that gets/groups Entity Beans and leave the "program flow logic" to a servlet? Will using a stateless bean really improve performance that much?
Any input or practical experiences that anyone has would be greatly appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic