"pete.muir(a)jboss.org" wrote : Ales has recently updated the hot deployment
scanner so that it is also responsible for updating the temp copy of existing apps -
people use this for being able to copy a new JSF etc. page and have the app show it
without restarting the app.
It's actually not hd scanner that has been updated,
it's this piece of configuration that does it (in profile.xml):
| <!-- The structure modification cache and checker -->
| <bean name="StructureModCache"
class="org.jboss.deployers.vfs.spi.structure.modified.DefaultStructureCache">
| <destroy method="flush"/>
| </bean>
|
| <!-- This just checks metadata locations -->
| <bean name="MetaDataStructureModificationChecker"
class="org.jboss.deployers.vfs.spi.structure.modified.MetaDataStructureModificationChecker">
| <constructor>
| <parameter><inject bean="MainDeployer"
/></parameter>
| </constructor>
| <property name="cache"><inject
bean="StructureModCache" /></property>
| <property name="filter"><bean
class="org.jboss.system.server.profile.basic.XmlIncludeVirtualFileFilter"
/></property>
| </bean>
|
| <!-- Synchs modifed files -->
| <bean name="SynchAdapter"
class="org.jboss.deployers.vfs.spi.structure.modified.OverrideSynchAdapter"/>
|
| <!-- We just visit wars, but exclude classes, lib, dev dirs -->
| <bean name="WebVisitorAttributes"
class="org.jboss.system.server.profile.basic.IncludeExcludeVisitorAttributes">
| <constructor>
| <parameter>
| <set>
| <value>.war</value>
| </set>
| </parameter>
| <parameter>
| <set>
| <value>WEB-INF/classes</value>
| <value>WEB-INF/lib</value>
| <value>WEB-INF/dev</value>
| </set>
| </parameter>
| </constructor>
| </bean>
|
| <bean name="StructureModificationChecker"
class="org.jboss.deployers.vfs.spi.structure.modified.SynchWrapperModificationChecker">
| <constructor>
| <parameter><inject
bean="MetaDataStructureModificationChecker"/></parameter>
| <parameter><inject
bean="SynchAdapter"/></parameter>
| </constructor>
| <property name="originalAttributes"><inject
bean="WebVisitorAttributes"/></property>
| <property name="tempAttributes"><inject
bean="WebVisitorAttributes"/></property>
| </bean>
|
HDScanner then asks Profiles for modified deployments,
which eventually ask MDSMChecker for real modifications.
If a deployment is not modified and is temped,
we go and check for any updates with SynchWSMChecker.
If it's modified then there is no need to check since it's gonna be updated
anyway.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226150#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...