I am preparing for OCEJWCD. And I came accorss this question. And no idea what will be the answer.I thought the correct answer is that the order can not be predicted. Which is wrong.Can someone plzz help me to understand it,
Q: In an application there are three web-fragment.xml. Given below. At which order these descriptor will be parsed. Given that there is no absoulte ordering in web.xml.
Web Fragment A
<web-fragment>
<name>A</name>
<ordering>
<before>
<others/>
<name>B</name>
</before>
</ordering>
Web-fragment B:
<web-fragment>
<name>B</name>
<ordering>
<before>
<others/>
<name>C</name>
</before>
</ordering>
Web-fragment C:
<web-fragment>
<name>C</name>
<ordering>
<before>
<others/>
</before>
</ordering>
Thanks in advance.