0 Replies Latest reply on Feb 27, 2007 7:58 AM by tom.baeyens

    context listeners vs servlets

    tom.baeyens

       

      "Alejandro" wrote:
      What are your thoughts on JBPM-742 and JBPM-851? I wanted to resolve them before you release jPDL 3.2.

      Re: JBPM-742, context listeners vs. servlets, listeners provide an elegant solution for doing work during initialization/destruction of a web app. No init-on-startup, no unjustified doGet() method. Plus, they are warranted to run only once, as opposed to servlets. Containers are free to create multiple servlet instances.

      Best,

      -Alejandro


      on http://jira.jboss.com/jira/browse/JBPM-742, I didn't really see a need for that. I agree that it is a better fit. But I don't think this should stall the 3.2 release. We can do it later as well. Actually i think it is just a tiny fraction better, but not worth changing. Or do you see other reasons why a servlet context listener is better then an actual servlet ?

      on http://jira.jboss.com/jira/browse/JBPM-851: that is still to be done before the 3.2 release. definitely.

      regards, tom.