Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question regarding plugability

 
varun Dosapati
Ranch Hand
Posts: 31
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if we see the example from the servlet spec 3.0

web-fragment.xml
<web-fragment>
<name>MyFragment1</name>
<ordering><after><name>MyFragment2</name></after></ordering>
...
</web-fragment>
web-fragment.xml
<web-fragment>
<name>MyFragment2</name>
..
</web-fragment>
web-fragment.xml
<web-fragment>
<name>MyFragment3</name>
<ordering><before><others/></before></ordering>
..
</web-fragment>
web.xml
<web-app>
...
</web-app>
In this example the processing order will be
web.xml
MyFragment3
MyFragment2
MyFragment1


From the spec


If a web-fragment.xml file does not have an <ordering> or the web.xml does
not have an <absolute-ordering> element the artifacts are assumed to not
have any ordering dependency.


So the result should be
MyFragment3
web.xml
MyFragment2
MyFragment1

Please correct me if I am wrong.

Thanks
Varun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic