We are working for a project which is developed using Servlets, Stateless EJB and Hibernate. Basic HTTPServlet will receive request data from client and it delegates processing job to respective stateless EJB. The request message is an XML string(some times size > 5 KB). DAO layer using Hibernate will take care of accessing database. There are some handler, utility classes which have calls from EJBs. According to our business logic, No need of maintaining transactions and security at EJB layer. Application is running in Jboss App server. We are using mysql data source manged by Jboss and accessing from Hibernate DAO layer
My Question is: In this case, Should I use Stateless EJB or Shall I go with normal java interfaces ? What is the advantage of EJB layer over normal java Interfaces ? How the performance is Effected by EJB layer ?
|