jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes Correct Framework for J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Correct Framework for J2EE" Watch "Correct Framework for J2EE" New topic

Correct Framework for J2EE

java boy

Joined: Jun 19, 2002
Posts: 6
I have a web based ERP package to be developed
using the J2EE.So I decided to go for MVC archetecture:
where all the requests from the client will first go to the Controller Servlet whose purpose is to just redirect or forward it to the appropiate Business Servlet.Business servlet will connect to database and populate the data in the Java Bean.Then the process from business servlet is redirected to JSP (which acts as the View) which will make use of the Java Bean data which is being populated by the Business servlet.
Now following are my doubts:
1. So here the Controller is Controller Servlet
and the View is JSP page then what is the
2. If I want to use EJB where shall I make use
of it.Can I use the EJB as an interface
between servlet and the database(i.e. for
connecting database from the servlet
through EJB and populating the bean).
3. Can I make use of the structs framework?What
is the benefit I get using it.

Appreciate you view on the above issues
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
1)In MVC architecture, Model is the core of the application. It maintains the state and data that the application represents.In your case model would be the Java bean.
2)You can use entity bean for database part.

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Ram Kondawar
Ranch Hand

Joined: May 29, 2001
Posts: 42
1. The model can be Java Bean or EJB.
2. DOnt use EJB if only it has to serve the purpose of interface between database and servlet.
3.Surely you can make use of the struct framework. This deals with MVC architecture.
Hope this helps..
java boy

Joined: Jun 19, 2002
Posts: 6
Hello Snigdha Solanki and Ram Kondawar
Thanks for ur reply.
I have seen the documentation struts framework.It seems its a very cumbersome process to use this framework.Is it so?
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
Refer to core J2EE patterns book which will clearly give some directions.
by the way which Raju are you( Andhra??? ) Just curious. Using a last name would have been more explanatory. Just kidding.

SCJP, blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Correct Framework for J2EE
It's not a secret anymore!