Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB/JSP Architecture and Performance Discussion  RSS feed

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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!