Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I put Business Logic in JavaBean?

 
Willian Corcel
Greenhorn
Posts: 13
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's a "DTO" ?
 
Willian Corcel
Greenhorn
Posts: 13
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic