This week's book giveaway is in the Design and Architecture forum. We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line! See this thread for details.
Hello.. I am using MVC for my web-app. I have two packages: (1)myPackage.web : Package for Controller classes (Servlets) (2)myPackage.model : Package for Model classes (Helper classes)
Now I want to add a ServletContextListener class in my app. In which package should I put it?
Originally posted by Bear Bibeault: Is it part of the model?
The Listener is used to get Data Source Name from context-init-parameters and to get a Connection using that Data Source Name, which can be used by Model classes afterwards
Your model should be compeltely independent of the user interface. In other words, if you chose to put a Swing UI on your application, would the listener class still be a useful part of the model?