Web tier: servlets, JSP, Web frameworks: Topic: Servlet or EJB design question for Online Store

  1. Topic: Servlet or EJB design question for Online Store (1 messages)

    I'm sure this question gets asked all the time, so please bear with me.

    I am creating an online store for our company. As part of the design, I wanted to seperate the admin/back-office functions into a seperate webapp. The admin webapp will be located on our local company intranet. Currently I am planning on using WebWork/Velocity/Hibernate in the app. My question is about how to best design this in terms or servlets/ejb. Since both the storefront and the admin apps will share many of the same functions, if I create seperate webapps, I will be copying a lot of the same code into both apps. I have never used EJBs before, but it seems like if I put these shared functions into EJBs, I could then just call these functions from both my storefront and admin apps without having to copy any code?

    Using this logic, it seems like EJBs are the only way to go to share code? Is that correct? Has anyone worked on a similar project that can offer any advice?
  2. I think the problem is architectural, you can find a full chapter in this book that discuss it:

    Expert One-on-One J2EE Design and Development (Programmer to Programmer)
    by Rod Johnson
    ISBN: 0764543857