Hi there, and happy new year! Have you ever had the possibility to read The J2EE Architect's Handbook freely available on the Net at http://www.dvtpress.com ?
I have found very interesting the layered approach used by the author, altough I think it was properly suited for J2EE 1.4 and EJB 2.0. Things have changed a lot since then, that's the reason why I'm asking if anybody is still using that particular layered approach with nowadays JEE 5 that is: - presentation - deployment - business - database access objects and - value object (POJOs) - architectural component (Frameworks) I have found that, when programming i.e. in netBeans 6.5, just a very simple app to maintain a list of users, NB propose the use of the following components: - one Servlet to list the users, takes advantage of a session bean facade - one Servlet to insert an user, it takes advantage of a session bean facade as well - one Stateless Session Bean used for session and business logic (POJI and POJO), takes advantage of DAO - one Entity Bean used as a DAO for ORM with the undelying DBMS Now, that is the code supplied by netBeans when using the wizards, that is "Build up enterprise app, inlcude EJB and WAR archives etc...". As you could see, the deployment wrapper is mixed with the business logic, and there's no reference to the value object at all. I have tried to extrapolate all the layers from the above structure imposed by NetBeans, I managed to separate Business Logic from the Deployment Layer and used a POJO users.java as an application-wide reusable object pulled out somehow from the DAO and reused there as well. My opinion is that perhaps there's a certain redundancy in what I've done, unless it woould become useful in a larger application, in this particular moment I can't see the real benefit to separate BO from DL and to create the VO as specified by Dashmore. The two coding examples are available on request. Any ideas about this particular and interesting issue? Thanks. Fabián --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---
