The following comment has been added to this issue:
Author: Jean-Noel Gadreau
Created: Sun, 14 Nov 2004 10:51 AM
Body:
Here is a "quick" patch for this bug. Basically, the structure of the XML for
message driven beans has changed in 2.1 . The current code does not support 2.1
(just 2.0)
In src/xdoclet/modules/ejb/dd/resources/ejb-body.xdt, the section about
MessageDrivenBeans should be replaced by two sections (one for 2.0 spec and 2.1
spec)
This is a "simple" version that works for me.
<XDtType:ifIsOfType type="javax.ejb.MessageDrivenBean">
<XDtConfig:ifConfigParamEquals paramName="EjbSpec" value="2.0">
<transaction-type><XDtClass:classTagValue tagName="ejb:bean"
paramName="transaction-type" values="Container,Bean"
default="Container"/></transaction-type>
<XDtClass:ifHasClassTag tagName="ejb:bean" paramName="message-selector">
<message-selector><XDtClass:classTagValue tagName="ejb:bean"
paramName="message-selector"/></message-selector>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:bean" paramName="acknowledge-mode">
<acknowledge-mode><XDtClass:classTagValue tagName="ejb:bean"
paramName="acknowledge-mode" values="Auto-acknowledge,Dups-ok-acknowledge"
default="Auto-acknowledge"/></acknowledge-mode>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:bean" paramName="destination-type">
<message-driven-destination>
<destination-type><XDtClass:classTagValue tagName="ejb:bean"
paramName="destination-type"
values="javax.jms.Queue,javax.jms.Topic"/></destination-type>
<XDtClass:ifHasClassTag tagName="ejb:bean"
paramName="subscription-durability">
<subscription-durability><XDtClass:classTagValue tagName="ejb:bean"
paramName="subscription-durability"
values="Durable,NonDurable"/></subscription-durability>
</XDtClass:ifHasClassTag>
</message-driven-destination>
</XDtClass:ifHasClassTag>
</XDtConfig:ifConfigParamEquals>
</XDtType:ifIsOfType>
<XDtType:ifIsOfType type="javax.ejb.MessageDrivenBean">
<XDtConfig:ifConfigParamGreaterOrEquals paramName="EjbSpec" value="2.1">
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type><XDtClass:classTagValue tagName="ejb:bean"
paramName="transaction-type" values="Container,Bean"
default="Container"/></transaction-type>
<XDtClass:ifHasClassTag tagName="ejb:bean" paramName="destination-type">
<message-destination-type><XDtClass:classTagValue tagName="ejb:bean"
paramName="destination-type"
values="javax.jms.Queue,javax.jms.Topic"/></message-destination-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value><XDtClass:classTagValue
tagName="ejb:bean" paramName="destination-type"
values="javax.jms.Queue,javax.jms.Topic"/></activation-config-property-value>
</activation-config-property>
<XDtClass:ifHasClassTag tagName="ejb:bean"
paramName="acknowledge-mode">
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value><XDtClass:classTagValue
tagName="ejb:bean" paramName="acknowledge-mode"
values="Auto-acknowledge,Dups-ok-acknowledge"
default="Auto-acknowledge"/></activation-config-property-value>
</activation-config-property>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:bean"
paramName="subscription-durability">
<activation-config-property>
<activation-config-property-name>subscriptionDurability</activation-config-property-name>
<activation-config-property-value><XDtClass:classTagValue
tagName="ejb:bean" paramName="subscription-durability"
values="Durable,NonDurable"/></activation-config-property-value>
</activation-config-property>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:bean"
paramName="message-selector">
<activation-config-property>
<activation-config-property-name>messageSelector</activation-config-property-name>
<activation-config-property-value><XDtClass:classTagValue
tagName="ejb:bean"
paramName="message-selector"/></activation-config-property-value>
</activation-config-property>
</XDtClass:ifHasClassTag>
</activation-config>
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="ejb:bean" paramName="message-selector">
<message-selector><XDtClass:classTagValue tagName="ejb:bean"
paramName="message-selector"/></message-selector>
</XDtClass:ifHasClassTag>
</XDtConfig:ifConfigParamGreaterOrEquals>
</XDtType:ifIsOfType>
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1143?page=comments#action_15241
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1143
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1143
Summary: MDB: Destination Type tag wrong for EJB 2.1
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
EJB Module
Versions:
1.2.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: Michael Kopp
Created: Mon, 8 Nov 2004 9:15 AM
Updated: Sun, 14 Nov 2004 10:51 AM
Description:
Although the ejbspec attribute is 2.1, xdoclet still generates a 2.0 tag:
<message-selector>JMSType = 'car'</message-selector>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
<subscription-durability></subscription-durability>
</message-driven-destination>
It should be:
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-link>link-if-defined</message-destination-link>
<activation-config>
<activation-config-property>
<activation-config-property-name>messageSelector</activation-config-
property-name>
<activation-config-property-value>JMSType='car'</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-
property-name>
<activation-config-property-value>AUTO_ACKNOWLEDGE</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>subscriptionDurability</activation-config-
property-name>
<activation-config-property-value>Durable|NonDurable</activation-config-property-value>
</activation-config-property>
</activation-config>
---------------------------------------------------------------------
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: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel