Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

controller or model

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are session beans contoller or model in MVC pattern
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe either, maybe neither. It all depends what you do with them.
Can you tell us a bit more about your application ?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using session beans as session facade.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When will the Session Facade most likely have to be changed: When business logic changes, when presentation to the user changes or when the form of user input changes?
 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
When will the Session Facade most likely have to be changed: When business logic changes, when presentation to the user changes or when the form of user input changes?

A typical session facade would be used to model business logic. If they are completely oblivious to the the presentation tier, they should be part of the Model.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if they model business logic (which seems to be the case to me, too), they are certainly part of the model.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic