[jira] Commented: (XDP-240) EJB Plugin doesn't parse EJB super class for xdoclet tags and doesn't put their description into ejb-jar.xml
"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]> Tue, 10 Mar 2009 06:13:12 -0500 (CDT)
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <24500359.1236683592890.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/XDP-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168734#action_168734 ]
Konstantin Pribluda commented on XDP-240:
-----------------------------------------
current workaround would be to implement javax.ejb.* in leaf classes
current logic determining whether to generate classes definitely needs attention
( patches as always welcome )
> 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
------------------------------------------------------------------------------