• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB  RSS feed

 
kishore goswami
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In J2EE implementation of MVC design a model is a javabean or an EJB ?
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's how James Goodwill defines the MVC components in his book "Mastering Jakarta Struts":
The Model - Represents the data objects. The Model is what is
being manipulated and presented to the user.
The View - Serves as the screen representation of the Model. It is
the object that presents the current state of the data
objects.
The Controller - Defines the way the user interface reacts to the user�s
input. The Controller component is the object that manipulates the Model, or data object.
[ February 05, 2004: Message edited by: sergiu truta ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be both. It can also be none of those two, but plain old Java objects instead.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!