Bookmark Topic Watch Topic
  • New Topic

Sending Email and Inventory management DAO

 
Sashwat Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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.
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • 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.
 
Sharma Ashutosh
Bartender
Posts: 346
  • Mark post as helpful
  • send pies
  • 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.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12056
232
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing topic as it is getting into the area of discussing solutions to the real assignments.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!