The following comment has been added to this issue:
Author: Matthias Germann
Created: Wed, 2 Feb 2005 10:39 AM
Body:
Hi Luk,
Thanks for the patch.
You are on the right way but it does not solve the issue correctly. You should
interpret the view-type attribute. You discovered that the current version does
not work for local references. With your patch, the external references no
longer work for remote references. ;-)
It would be nice if you could fix your patch... :-)
Here is an extract from
/modules/ejb/src/xdoclet/modules/ejb/dd/resources/ejb-ref.xdt which shows how
the "view-type" parameter is interpreted to generate the id in ejb-jar.xml. You
should update your patch so that it uses the same algrotithm.
<XDtClass:forAllClassTags tagName="ejb:ejb-external-ref">
<XDtClass:ifClassTagValueEquals tagName="ejb:ejb-external-ref"
paramName="view-type" value="remote">
<ejb-ref <XDtId:prefixedId prefix="EJBRef"/>>
<ejb-ref-name><XDtEjb:ejbExternalRefName/></ejb-ref-name>
<ejb-ref-type><XDtClass:classTagValue
tagName="ejb:ejb-external-ref" paramName="type"
values="Entity,Session"/></ejb-ref-type>
<home><XDtClass:classTagValue tagName="ejb:ejb-external-ref"
paramName="home"/></home>
<XDtClass:ifHasClassTag tagName="ejb:ejb-external-ref"
paramName="remote">
<remote><XDtClass:classTagValue tagName="ejb:ejb-external-ref"
paramName="remote"/></remote>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:ejb-external-ref"
paramName="business">
<remote><XDtClass:classTagValue tagName="ejb:ejb-external-ref"
paramName="business"/></remote>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:ejb-external-ref"
paramName="link">
<ejb-link><XDtClass:classTagValue tagName="ejb:ejb-external-ref"
paramName="link"/></ejb-link>
</XDtClass:ifHasClassTag>
</ejb-ref>
</XDtClass:ifClassTagValueEquals>
</XDtClass:forAllClassTags>
Feel free to ask me again if you don't understand me.
Regards,
Matthias
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1250?page=comments#action_15839
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1250
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1250
Summary: webSphere ejb: ejb.ejb-external-ref does not work
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
IBM Module
Assignee: xdoclet-devel (Use for new issues)
Reporter: Michael Kopp
Created: Thu, 27 Jan 2005 8:59 AM
Updated: Wed, 2 Feb 2005 10:39 AM
Description:
It still requires the ejb-name to be specified although it is deprecated. And
if specified it searches for it an complains that it cannot find it. How should
it, it is an external EJB.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel