From: Marc P. <ma...@an...> - 2005-12-07 18:05:36
|
Hi all, Yes I'm finally being able to work in a bit of WM dev into my normal work. I'm using the embryonic Spring MVC/WM support I've developed with WM 2 and its working fine as far as I can tell so far. There is also the JSP taglib. However the JSP suffers a problem. Every JSP page you have that uses the Webmacro tag will currently have its own WM instance. This is of course rather heavyweight. The obvious workaround is to synchronize on a static lock object and allocate a shared static WM instance. However this will throttle performance badly as every page that uses WM will effectively be serialized in access - rendering only one client's instance of the page at a time. The solution must be buried in the concurrent stuff but I haven't got time to look it up. Anybody got any clues for me? Basically we just need the common pattern of allocating a shared static object only once, in a thread- safe manner. Thanks in advance. I'm ready to commit this stuff as experimental... ~ ~ ~ Marc Palmer (ma...@an...) Consultant/Analyst AnyWare Ltd. http://www.anyware.co.uk/ |