File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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 ]
 
 
subject: Can I put Business Logic in JavaBean?