Dain

After all that I think the original code was right.

The key thing is the comment in the JavaDoc for DConfigBean:

A DConfigBean is created by calling DConfigBean.getDConfigBean(DDBean) method, where DConfigBean is the *object that provided the XPath* which the DDBean represents.

In other words, you are not allowed supply merged XPaths like 'web-app/ejb-ref/ejb-ref-name' but must first locate the DConfigBean for 'web-app' and then use the XPaths it says it supports e.g. 'ejb-ref/ejb-ref-name'

I have updated the testcase to reflect this and it passes. Which I guess means we know the code does this, but we have to hope we are interpreting the spec correctly ;-)

--
Jeremy



Reply via email to