On Wed, 2005-06-29 at 13:23, Gérald Quintana wrote: > According to XDoclet documentation, the @ejb.transaction tag only > works with Entity and Session beans (seen in > http://xdoclet.sourceforge.net/xdoclet/tags/ejb-tags.html). And it > doesn't work with Message-driven beans (tested with XDoclet 1.2.3). > > According to EJB 2.1 spec, "For a message-driven bean's message > listener interface, only the Required and NotSupported transaction > attributes may be used.". Which means to me that MDB supports > transaction attributes. > > Did I miss something? Or is there way to generate the > <container-transaction> > <method> > <ejb-name>MessageDriven</ejb-name> > <method-name>*</method-name> > </method> > <trans-attribute>NotSupported</trans-attribute> > </container-transaction> > bloc in the ejb-jar.xml for my MDB.
I found an issue in JIRA which looks relevant (http://opensource.atlassian.com/projects/xdoclet/browse/XDT-647), but that was resolved some time ago. In fact, the documentation you mention at http://xdoclet.sourceforge.net/xdoclet/tags/ejb-tags.html says "Note: To set the transaction type for Message Driven Beans, use the class level tag for now." which suggests that it ought to work, but not if you use a method-level @tag. How exactly are you trying to specify the transaction type in your MDB? Andrew. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
