Add support for the resource-env-description tag into the weblogic.xml file
---------------------------------------------------------------------------
Key: XDT-1609
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1609
Project: XDoclet
Type: Bug
Components: Bea Module
Versions: 1.2.3
Environment: Windows XP Home
Reporter: Jacob Turpin
Assigned to: xdoclet-devel (Use for new issues)
Currently, there is support for the @weblogic.resource-env-description tag in
XDoclet 1.2.3 for the weblogic-ejb-jar.xml file. However, it does not seem to
be supported in the weblogic.xml file. For example, if you attempt to use
this tag in a WAR file that has a weblogic.xml file, and not a
weblogic-ejb-jar.xml file, it does not work. It seems that adding the
following code to the weblogic_web_xml.xdt in the BEA module would solve the
problem:
<XDtComment:comment>
De-dup the resource-descriptions by creating a Map where
name=res-env-ref-name and value=jndi-name
</XDtComment:comment>
<XDtCollection:create name="weblogic-res-env-desc" type="map"/>
<XDtClass:forAllClasses>
<XDtClass:forAllClassTags tagName="weblogic:resource-env-description">
<XDtCollection:put name="weblogic-res-env-desc"
key='<XDtClass:classTagValue
tagName="weblogic:resource-env-description" paramName="res-env-ref-name"/>'
value='<XDtClass:classTagValue
tagName="weblogic:resource-env-description" paramName="jndi-name"/>'/>
</XDtClass:forAllClassTags>
</XDtClass:forAllClasses>
<XDtCollection:forAllElements name="weblogic-res-env-desc">
<resource-env-description>
<res-env-ref-name><XDtCollection:currentElement/></res-env-ref-name>
<jndi-name><XDtCollection:get name="weblogic-res-env-desc"
key='<XDtCollection:currentElement/>'/></jndi-name>
</resource-env-description>
</XDtCollection:forAllElements>
<XDtCollection:destroy name="weblogic-res-env-desc"/>
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel