This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes controller or model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "controller or model" Watch "controller or model" New topic
Author

controller or model

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Are session beans contoller or model in MVC pattern


Groovy
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Maybe either, maybe neither. It all depends what you do with them.
Can you tell us a bit more about your application ?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I am using session beans as session facade.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
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.


Thank you.<br /> <br />- Jess Sie<br /> <a href="mailto:jess@see-consulting.com" rel="nofollow">jess@see-consulting.com</a>
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Yes, if they model business logic (which seems to be the case to me, too), they are certainly part of the model.
 
Don't get me started about those stupid light bulbs.
 
subject: controller or model
 
Similar Threads
Domain object model
WA #1.....word association
In which package should be a Listener
' V model'
Suggestions for displaying files from database