File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I put Business Logic in JavaBean?

 
Willian Corcel
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1056
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's a "DTO" ?
 
Willian Corcel
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic