velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Thread safety
Date Mon, 01 Oct 2001 10:00:12 GMT
On 10/1/01 4:24 AM, "Bojan Smojver" <bojan@binarix.com> wrote:

> Are Template.merge() and VelocityEngine.getTemplate() thread safe?
> 
> Bojan

merge() is as long as you don't share a VelocityContext across simultaneous
threads.

getTemplate() should be as well.

Er, why?  Problems?

-- 
Geir Magnusson Jr.     geirm@optonline.net
System and Software Consulting
"Whoever would overthrow the liberty of a nation must begin by subduing the
freeness of speech." - Benjamin Franklin



Mime
View raw message