Brian H. wrote:
However without having a Service layer in my application, I feel that I end up having a listener that do more work. I am somewhat hesitant to add a whole other layer to my application though.
Your concerns are justified--if you put too much in your listeners you'll regret it later. As for adding another layer, it's much easier to do it now as opposed to having to rework it later.
In your applications, could you easily swap out one framework for another, or do you have a little more going on at the listener level?
You want to keep your listeners as "dumb" (or "skinny" if you prefer) as possible. Remember that their job is to act as a controller, not to be part of your business logic layer.
If you have a bit of time, I did a presentation a few times this year on architecting for multiple UI technologies that addresses layered architectures in CFML applications. You can view the latest incarnation of it here:
http://experts.na3.acrobat.com/p81692308/ -- Matt Woodward m...@mattwoodward.com http://www.mattwoodward.com/blog Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html
smime.p7s
Description: S/MIME Cryptographic Signature