What I've done is as follows

In WEB-INF/web.xml i have the following  listeners and params.

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>${myConfigDir}/applicationContext.xml</param-value>
    </context-param>
    <listener>
        <description>Configures Log4J for this web app.</description>
       
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    </listener>
    <listener>
        <description>Configures spring with this web app.</description>
       
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

This means that via a property I can tell the app to keep the
applicationContext.xml anywhere. (eg,
JETTY_OPTS="-DmyConfigDir=file:/someDirectory")

If you use this it should ... hopefully work for you.  I cant remember the
setup in too much detail, but it works :)


freak182 wrote:
> 
> My question is, the appContext.xml should be put in the classpath or
> /WEB-INF/config ?is there is difference between the two? Any idea.
> Thanks a lot.
> Cheers
> 

-- 
View this message in context: 
http://www.nabble.com/annotated-class-tp15476390p15476513.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to