Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC design pattern

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the MVC design pattern, why don't we assign EJB as a controller ?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kri shan:
In the MVC design pattern, why don't we assign EJB as a controller ?



I think MVC design pattern, in Controller is main structure of program but MVC is suitable in Web Tier more than Business Tier.

When you want to use EJB , the Controller of MVC to call EJB Controller in Business tier.

So, you can implement EJB Controller with MVC Concept.

------- In my job , i separate EJB Controller in business tierwhich it's flexible and faster to develope.
 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my understanding of business tier,
the stateless session ejb does act as a Controller;
the stateful session bean as a business process and
the entity bean as a model.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by PNS Subramanian:
From my understanding of business tier,
the stateless session ejb does act as a Controller;
the stateful session bean as a business process and
the entity bean as a model.


I'm agree with you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic