servlet-listeners
contextDestroyed() vs addShutdownHook()
I\'m currently implementing ServletContextListener and using contextDestroyed() to r开发者_Go百科un cleanup tasks on my web application before it shuts down.However, I\'ve been reading about how Runti[详细]
2023-03-25 05:16 分类:问答InputStream left open from TimerTask call to Guava map; GlassFish complains on undeploy
I\'m implementing ServletContextListener in order to schedule various jobs on my app server (GlassFish 3.1). I\'m using contextInitialized() to schedule recurring tasks, andcontextDestroyed() to call[详细]
2023-03-23 17:40 分类:问答How can I make a ServletContextListener stop the Java EE application?
I have a ServletContextListener which performs some database management functions when my Java EE application starts. This runs in my application before JPA and other pieces of the application are sta[详细]
2023-03-19 07:11 分类:问答Adjusting web.xml listeners, filters and servlets
Following is outline of what I have in my web.xml config file. I need help putting this into the correct order.[详细]
2023-02-19 22:45 分类:问答Get Cookies from ServletRequest
I\'m using ServletRequest开发者_StackOverflowListener to attach to new requests, get a ServletRequest object and extract cookies from it.[详细]
2023-02-19 16:04 分类:问答implementing HttpSessionListener
I am facing a similar problem and have learnt that my listener class will be instantiated when the web.xml is read. I have few functions in the listener class that are used by the main servlet\'s doPo[详细]
2023-02-16 12:59 分类:问答Getting SessionScoped bean from HttpSessionListener?
Hey guys.I\'m trying to get a session bean in a HttpSessionListener so that when the user logs out or the session expires I can delete some files that the user created in the application.I\'m guessing[详细]
2023-02-15 11:24 分类:问答JSF: How to redirect a user to a another page according to the value of a specific FacesContext session attribute
In my JSF application, I need to redirect the user from Page A to page B if a session attribute such as userRole has a value of \"contributor\", and to a page C, for example, if it is \"author\".[详细]
2023-02-09 23:04 分类:问答Tomcat: how to create a HttpRequestListener, similar to HttpSessionListener?
I hav开发者_StackOverflow社区e created a HttpSessionListener on my webapp, and its works fine. How can i create a similar request listener, called when a user make a request on a session? It is possib[详细]
2023-02-05 18:05 分类:问答Difference between Filter and Listener in Servlet (Java EE)
There are Filters and Listeners functionality in Servlet. I want to know exact difference between Filt开发者_如何学Cer and Listener.Servlet Filter is used for monitoring request and response from clie[详细]
2023-02-05 09:44 分类:问答