JDBC calls from Session Beans. Stateless or Stateful

Discussions

EJB programming & troubleshooting: JDBC calls from Session Beans. Stateless or Stateful

  1. When making JDBC calls from session beans for performance reasons. Should I use a stateless or stateful session bean and is this dependent on different situations.

    Cheers.
  2. performance wise, stateless beans are extremely useful. only thing is, as goes the funda, see that u'r method calls do not depend on one another. in short, there is no state to be preserved.

    vijay
  3. I have had great success with performance when making JDBC calls with stateless session beans. The performance difference between entity beans and stateless session beans can be substantial. The decision of where persistence really happens depends on what type of web application that you are building, and the quality of developers that are working on the project.

    Hope this helps,

    Kent