Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes How to connect Servlets and EJBs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

How to connect Servlets and EJBs

J Nix
Greenhorn

Joined: Oct 10, 2011
Posts: 9
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,
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Please continue in your other thread here http://www.coderanch.com/t/557506/EJB-JEE/java/connect-Servlets-EJBs

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to connect Servlets and EJBs
 
Similar Threads
Design Question
How to connect Servlets and EJBs
Application flow
Synchronizing on a static method
big picture..