This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The ServletContextListener template has some comments and commented out code in the methods which is not really helpful (the example says to set up the database connection when the app intitializes and to close it when the app closes). It's kind of unlikely that an app uses only one db connection, so I think we should take that out. The sort of thing that you might want to use this for is to set up application defaults by reading them in from a configuration file for example, although that's typically not the sort of thing that needs to do anything on exit. Also you could use it to set up a DB connection pool. Anyway, if we provide suggestions to what might go in there, they should make sense and be helpful.
Set target milestone to TBD
Jeff, please address this in the usability proposal.
got the assignments wrong
Agree, ServletContextListener can be used for many different things. Also for getting some JNDI Resource(s). There is only one example shown - a simple database connection. I think, its obvious enough that the simple connection can be extended to establishing some DB connection pool. Ana(Jeff),could you suggest some more educative examples (suggestions) that could be put into the tepmlate ?