[jboss-jira] [JBoss JIRA] Created: (BPEL-223) Convert IntegrationServlet to a servlet context listener

Alejandro Guizar (JIRA) jira-events at jboss.com
Mon Jan 15 16:15:52 EST 2007


Convert IntegrationServlet to a servlet context listener
--------------------------------------------------------

                 Key: BPEL-223
                 URL: http://jira.jboss.com/jira/browse/BPEL-223
             Project: JBoss jBPM BPEL
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Engine
            Reporter: Alejandro Guizar
         Assigned To: Alejandro Guizar
             Fix For: jBPM BPEL 1.1 beta 3


ServletContextListeners are a viable alternative to servlets for initializing and destroying the integration control. From the Servlet 2.4 spec, section 10.2:

"Servlet event listeners support event notifications for state changes in the ServletContext, HttpSession and ServletRequest objects.
Servlet context listeners are used to **manage resources** or state held at a JVM level for the application."

Their intent definitely seems to match our purposes.

Section 10.2.2 provides an example. When the application starts up, the listener creates a connection to the database and stores it in the servlet context. Servlets access the connection from the context as needed. When the application shuts down, the listener closes the connection.

Our listener could initialize the integration control and store it in the servlet context, then destroy it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list