struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: Class reloading
Date Sun, 12 Jul 2009 18:31:15 GMT
Ok I committed my changes to the spring plugin,

jira ticket: https://issues.apache.org/struts/browse/WW-3183
docs: http://cwiki.apache.org/confluence/display/WW/Spring+Plugin

here is what you need to do to enable this:

 * Set "struts.devMode" to "true"
 * Set "struts.class.reloading.watchList" to a comma separated list of
directories, or jar files (absolute paths)
 * Add this to web.xml:

        <context-param>
             <param-name>contextClass</param-name>
             <param-value>org.apache.struts2.spring.ClassReloadingXMLWebApplicationContext</param-value>
         </context-param>

 * Add Apache Commons JCI FAM to the classpath. If you are using
maven, add this to pom.xml:

       <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-jci-fam</artifactId>
            <version>1.0</version>
        </dependency>

I have to say that I love being able to just recompile my changes and
not having to reload the container (yes, yes I know about javarebel).

musachy


On Sun, Jul 12, 2009 at 12:10 AM, Musachy Barroso<musachy@gmail.com> wrote:
> actually this is easier said than done, I will need some creative way
> to let my spring class (which extends XmlWebApplicationContext) if we
> are in devMode or not. Any ideas?
>
> musachy
>
> On Sat, Jul 11, 2009 at 7:25 PM, Musachy Barroso<musachy@gmail.com> wrote:
>> On Sat, Jul 11, 2009 at 7:16 PM, Dale Newfield<dale@newfield.org> wrote:
>>> That seems great, but something that should only kick in if devMode is true.
>>>  Is that possible?
>>
>> yeah, I kinda forgot that part :)
>>
>> musachy
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message