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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending Email and Inventory management DAO

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
In Cade Sheil's SCEA study guide, in the worked example the Sending Email and Inventory management is done via a DAO.

IMHO sending in not accessing data and should not be considered a DAO. Similarly the inventory management is a service provide and is not just data access.

Please correct my understanding if required.
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I agree and I also noticed the same last week end.
Sending email is probably last task in most work flows so I would do it using using Java mail. If considerable number of emails need to be sent with some transaction, I would use MDBs. For inventory, WS in most cases is good option.
 
Bartender
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
May be Cade wanted to keep the uniform design and any data access whether it is from DB or external systems - he end up creating DAO.
Though i also agree that both Mailing Service and Inventory Management Service should have been handled bit differently.
In my case for emailing-I have used Apache James Mail Server http://james.apache.org/ which can persist the messages and handle hard & soft bounces, takes care of SPAM, virus protection also.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closing topic as it is getting into the area of discussing solutions to the real assignments.
    Bookmark Topic Watch Topic
  • New Topic