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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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: 354
  • 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: 12199
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.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic