LDEV-3425: declare transaction attributes for readOnly methods of IForumService. This stops hibernate from flushing session on transaction commit. (performance tuning with TestHarness - 30forums.zip)
LDEV-3413: This is a workaround to problem described in LDEV-3413. Since DistributableSession handling under undertow is buggy and fixes in 9.0.0.Alpha version of clustering/web/undertow (and dependent modules) are to deep to incorporate to 8.2.0, we enforce usage of InMemorySessionManager over DistributableSessionManager (see org.wildfly.extension.undertow.deployment.SharedSessionManagerDeploymentProcessor)