You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/11/26 00:08:11 UTC
DO NOT REPLY [Bug 32398] New: -
Factorizing VelocityEngine instance among servlets is not possible
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32398
Summary: Factorizing VelocityEngine instance among servlets is
not possible
Product: Velocity
Version: 1.5
Platform: PC
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: Tools
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: claude@renegat.net
When one uses several servlets that all inherit VelocityViewServlet, one may
want to factorize the instance of VelocityEngine along all servlets, typically
by overriding initVelocity(), getVelocityEngine() and getVelocityProperty() so
that they refer to a static instance of VelocityEngine.
But it's not possible because VelocityViewServlet makes several direct
references to its private member 'velocity' whereas it should use
getVelocityEngine().
I'll try to contribute a 'subversive' patch if I figure how to do it :-)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org