The disable-event-thread Element"
From Documentation
Jumperchen (talk | contribs) |
|||
Line 7: | Line 7: | ||
[Since ZK 7.0.0 deprecated to enable the event thread according to Java Servlet Specification that may prohibit the creation of new threads] | [Since ZK 7.0.0 deprecated to enable the event thread according to Java Servlet Specification that may prohibit the creation of new threads] | ||
− | [Default: true (disabled) for ZK 5 ad later; false (enabled) for ZK 2.x and | + | [Default: true (disabled) for ZK 5 ad later; false (enabled) for ZK 2.x and 3.x] |
− | It specifies whether to disable the use of the event processing thread. If disabled, no event processing thread will be used at all. In other words, all events are processed in the same thread that serves HTTP | + | It specifies whether to disable the use of the event processing thread. If disabled, no event processing thread will be used at all. In other words, all events are processed in the same thread that serves HTTP requests (so-called Servlet thread) directly. |
− | For better performance (and better | + | For better performance (and better compatibility with other frameworks), it is recommended to disable the use of the event processing thread. Please refer to [[ZK Developer's Reference/UI Patterns/Event Threads|ZK Developer's Reference: Event Threads]] for more information. |
Enable the event thread only if the project does not need to integrate other frameworks (such as Spring), uses <javadoc>org.zkoss.zul.Messagebox</javadoc> and modal windows a lot, and does not have a lot of concurrent users. | Enable the event thread only if the project does not need to integrate other frameworks (such as Spring), uses <javadoc>org.zkoss.zul.Messagebox</javadoc> and modal windows a lot, and does not have a lot of concurrent users. |
Revision as of 01:46, 6 April 2022
Syntax:
<disable-event-thread>true|false</disable-event-thread>
[Since ZK 7.0.0 deprecated to enable the event thread according to Java Servlet Specification that may prohibit the creation of new threads]
[Default: true (disabled) for ZK 5 ad later; false (enabled) for ZK 2.x and 3.x]
It specifies whether to disable the use of the event processing thread. If disabled, no event processing thread will be used at all. In other words, all events are processed in the same thread that serves HTTP requests (so-called Servlet thread) directly.
For better performance (and better compatibility with other frameworks), it is recommended to disable the use of the event processing thread. Please refer to ZK Developer's Reference: Event Threads for more information.
Enable the event thread only if the project does not need to integrate other frameworks (such as Spring), uses Messagebox and modal windows a lot, and does not have a lot of concurrent users.
Version History
Version | Date | Content |
---|---|---|
7.0.0 | November, 2013 | Deprecated to enable event thread. |