• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Can I put Business Logic in JavaBean?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what's a "DTO" ?
 
Willian Corcel
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic