This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can I put Business Logic in JavaBean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I put Business Logic in JavaBean?" Watch "Can I put Business Logic in JavaBean?" New topic
Author

Can I put Business Logic in JavaBean?

Willian Corcel
Greenhorn

Joined: Jun 04, 2003
Posts: 13
1 - What the best place to put the business logic?
2 - JavaBean is a kind of DTO? Can I put Business Logic inside it?
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
what's a "DTO" ?


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Willian Corcel
Greenhorn

Joined: Jun 04, 2003
Posts: 13
It's a Design Pattern...
DTO = Data Transfer Object
Actually I don't think it's a good idea to put the business logic inside JavaBean... Because Javabeans should only be used for Retrive (getter) and Put (Setter) data. Not for calculation or any operation.
Does anyone agree with me?
[ July 27, 2003: Message edited by: Willian Corcel ]
 
GeeCON Prague 2014
 
subject: Can I put Business Logic in JavaBean?