-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I need to create an object shared from all session (users) of my app. This object has to be created when the server starts.
Any suggestions ?
There are a few ways.
1. Implement it in a static clause of a class that will be loaded at start up, if you can find such kind of class
2. Implement org.zkoss.zk.ui.util.WebAppInit, and register it to zk.xml as a listener
3. Implement a Http listener and register it to web.xml
Asked: 2010-08-26 01:08:37 +0800
Seen: 267 times
Last updated: Sep 05 '10