Neither XDoclet 1.1.2 or the CVS version can parse
ejb:ejb-ref with view-type="both", only
view-type="remote" and view-type="local".
XDoclet 1.1.2 allowed "both" functionality/work-around
by reading a pair of ejb:ejb-ref class tags with the
same ejb-name, one with view-type="remote" and the
other with view-type"local".
The current XDoclet doesn't allow "both" functionality
at all because the XDtEjbRef:forAllEjbRefs content tag
purposely skips ejb:ejb-ref tags with duplicate
ejb-name parameters. One could argue that this is a bug.
I've written a small patch that adds two content tags
to XDtEjbRef: ifRemoteRef and ifLocalRef, also updated
resources/ejb-body.xdt to use these tags rather than
XDtClass:ifClassTagValueEquals which ends up looking
cleaner because there was a redundant set of <ejb-ref>
(the remote ref) elements.
Log in to post a comment.