JDNI factory name
"Mathias Bogaert" <[email protected]>
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <00b101c42089$de62ecd0$583277d5@nextcom> |
Hi,
I would like to change the way SiteMesh's Factory implementation class is
being looked up. Currently it goes and look the JDNI InitialContext
"java:comp/env/sitemesh.factory" property. IMO this is overkill and does not
work well with multiple applications requiring a different SiteMesh factory
while deployed on the same application server (JDNI spans multiple web
applications). I therefore suggest using a context-param in web.xml (like
spring).
<context-param>
<param-name>sitemeshFactoryClass</param-name>
<param-value>com.mycompany.util.sitemesh.SpecialSiteMeshFactory</param-value
>
</context-param>
If not specified, it will automatically resolve into
com.opensymphony.module.sitemesh.factory.DefaultFactory.
Let me know if anyone finds this offensive :)
Mathias
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click