From: Konstantin P. (JIRA) <ji...@co...> - 2009-03-07 17:24:32
|
[ http://jira.codehaus.org/browse/XDP-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168373#action_168373 ] Konstantin Pribluda commented on XDP-240: ----------------------------------------- Supplied example excludes abstract base class from file set feed to xdoclet: <fileset dir="src"> <include name="**/*EJB.java"/> </fileset> Thus it will never see it. As for your last comment - this belongs in separate issue > EJB Plugin doesn't parse EJB super class for xdoclet tags and doesn't put their description into ejb-jar.xml > ------------------------------------------------------------------------------------------------------------ > > Key: XDP-240 > URL: http://jira.codehaus.org/browse/XDP-240 > Project: XDoclet 2 Plugins > Issue Type: Bug > Components: ejb > Affects Versions: 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0 > Environment: JDK 1.5 > ANT 1.7 > Reporter: Konstantin Kasatkin > Priority: Critical > Attachments: xdoclet2.zip > > > It doesn't parse EJB super class for xdoclet tags and doesn't put their description into ejb-jar.xml. > XDoclet1 really did that, because I remember that I personally set this issue against project team. > I have an 2 super classes for the EJB and a super interface for EJB Interface looking like > public abstract class AbstractSessionBean implements SessionBean {...} > public class AsyncPipesImpl extends AbstractSessionBean implements AsyncPipes { > ...some business methods with xdoclet declarations... > /** > * @ejb.interface-method > * @ejb.transaction-method type="Supports" > */ > public void additionalMethods () { ... implementation ... } > } > public interface AsyncPipes extends Serializable { > public void additionalMethods(); > } > EJB class is declared as: > /* > * @ejb.bean ... > * @ejb.interface extends="AsyncPipesImpl,javax.ejb.EJBObject" > * local-extends=" AsyncPipes,javax.ejb.EJBLocalObject" > */ > public class ImportEJB extends AsyncPipesImpl { > ... implementation ... > } > When I run EjbJarXmlPlugin I see that all declarations in AsyncPipesImpl are ignored and ejb-jar.xml doesn't contain any of its methods. > Same behavior with EjbConfig plugin, it doesn't check validity of xdoclet descriptors in the AsyncPipesImpl. > Aslo I've noticed that EJB plugin generates nothing if I don't add "implements SessionBean" explicitly in declaration of ImportEJB class, however it would get this information from super class, so I have to put unnecessary declaration. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |