Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to connect Servlets and EJBs

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I'm still studying JEE6 and trying to start several practice web application for practice. My question what is the best way to implement a basic MVC architecture by hand. My idea right now is to use Eclipse with Glassfish as the container. Make a Derby database for the model and create a servlet inside of a Dynamic Web Project for handling HttpRequests. the business logic would be contained within an EJB (for now this is very simple logic but at least I'm starting good practice by separating concerns) And to try and use some kind of data access objects and entity beans for the persistence with JPA.

My first application will be really simple. It will prompt the user for input on a form. It will pass the information from the servlet to the EJB then to the Database. I will then display the information on the page.

Can anyone offer me any tips or advice. Am I going about this the right way?

Thank you,
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please continue in your other thread here https://coderanch.com/t/557506/EJB-JEE/java/connect-Servlets-EJBs
 
    Bookmark Topic Watch Topic
  • New Topic