Hello : 
   I am trying to setup XDoclet for generating the EJB interfaces for Stateless 
Session beans. 
   I am stuck at one problem :

  All my beans are extendig from a parent bean which is implementing SessionBean.
        
     **    public abstract class ParentBean implements SessionBean   // parent Bean  **

        Obviously, i don't want to generate interfaces for this ParentBean and I have 
not given
        any XDoclet tags here.( Also i have configured fileset->includes for 
**/EJB.java only )

        All Other beans are extending from the Parent Bean.

        /**
        * @ejb.bean name = "MyEJB"
        *           display-name = "MyEJB "
        *           description = "EJB for doing ..."
        *           view-type = "both"
        *           jndi-name = "MyEJB" 
        *           transaction-type = "Container"  
        *  
       */

       public class MyEJB extends ParentBean   // Concrete Bean Class

  Now the problem is that when the interfaces  for  MyEJB are generated, all of them 
are extending from ParentBean,
PaerntBeanHome , ParentBeanLocalHome... which are not present. ( and i do no want them 
too  ). According to XDoclet documentation, the value of "extends" attribute is by 
default the respective interfaces like EJBObject, EJBLocalObject .. I know that i can 
solve the problem by adding the tag "@ejb.interface extends="javax.ejb.EJBObject" to 
the xdoclet tag in the MyEJB Class. But is there a solution by which I can specify to 
follow the default "extends" ( javax.ejb.* ) for interfaces in xdoclet-build.xml or in 
a .xdoclet instead of repeating the "extends" attribute for home,localhome, remote and 
remotehome in all the EJB's ( I have about 50 of them !! ).

Any one knows the solution, pls help.

thanks and regards,

 -- Kannan.

         
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to