As an architectural practice, though....if the AccountManager has a reason to know about the Bill entity (table, whatever) ... IMHO the AccountManager should have a reference to the BillGateway so it can call it "natively", and you may not even need a BillManager ... this way your service/manager layer is acting as a better API for the "outside" world (i.e., Mach-ii or other clients) to understand how the data is actually organized. If you have services/managers calling each other, then managing those dependencies could get tough quickly. Instead, if you simply have one service/manager for one OR MORE related DAOs/tables/whatever, then to the outside world accessing your data becomes simpler, and your service/manager layer is a bit more purposeful.
^^^ $0.02. --Joe On Tue, May 15, 2012 at 2:02 PM, Peter Farrell <[email protected]> wrote: > Call the manager not the gateway. This way if you gateway stuff > changes...everything is done via the manager. One one place to fix. > Otherwise you have to hunt for any external calls to gateways. > On May 15, 2012 10:09 AM, "Nicholas Dee" <[email protected]> wrote: > >> We have our Listeners call our Managers and our Managers call the >> Gateways,Dao's or Cruds. >> To simplify this i'll just refer to Gateways. >> >> So if we have a AccountManager, BillManager and the respective >> AccountGateway and BillGateway . >> >> The question is, if the AccountManager needs to call a method in the >> BillGateway should the AccountManager call the Billgateway directly >> or should the AccountManager call the proper method in the BillManager >> and have the BillManger call the BillGateway? >> >> Thanks for any responses. >> >> -- >> To post to this group, send email to >> [email protected] >> For more options and to unsubscribe, visit this group at >> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en >> >> SVN: http://svn.mach-ii.com/machii/ >> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ >> > -- > To post to this group, send email to > [email protected] > For more options and to unsubscribe, visit this group at > http://groups.google.com/group/mach-ii-for-coldfusion?hl=en > > SVN: http://svn.mach-ii.com/machii/ > Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ > -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
