Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Ejbdoclet, Enterprise Javabeans

Options
  • 25-01-2004 7:50pm
    #1
    Closed Accounts Posts: 1


    XDoclets ejbdoclet tags are working ok but ejbdoclet doesnt go into the javabean to read the attributes that I have. These attributes should be outputted to hte various classes (remote/remoteHome). Eg my code (in xdoclet is)...

    <!-- Run EJBDoclet -->
    <target name="ejbdoclet">

    <taskdef name="ejbdoclet" classname="xdoclet.ejb.EjbDocletTask"/>
    <!-- <taskdef name="ejbdoclet" classname="xdoclet.doc.DocumentDocletTask"/> -->

    <ejbdoclet sourcepath="${src}" destdir="${src}/gen-src" ejbspec="2.0" force="${xdoclet.force}"
    excludedtags="@version,@author&quot;>
    <!--Did have 'packagenames="example1" '-->
    <fileset dir="${src}">
    <include name="**/*Bean.java" />
    </fileset>

    <!-- <dataobject/> -->

    <remoteinterface/>
    <homeinterface/>

    <!--<entitycmp pattern="HelloWorldBean" templatefile="${src.example1}/HelloWorldBean.java"/>-->
    <entitypk pattern="HelloWorldPK"/>
    <deploymentdescriptor destdir="${build}/META-INF"/>

    <jboss version="2.4" xmlencoding="UTF-8" typemapping="Hypersonic SQL"
    datasource="java:/DefaultDS" destdir="${build}/META-INF"/>

    </ejbdoclet>
    </target>


    The tags in the javabean code is as follows.

    /*
    * @see A HelloWorldBean
    *
    * @ejb:bean
    * name="example1/HelloWorld"
    * type="CMP"
    * jndi-name="HelloWorld"
    * primkey-field="Product_ID"
    *
    * @ejb:home extends="javax.ejb.EJBLocalHome"

    When I look at the home object, it extends EJBHome, and not EJBLocalHome.

    Thanks a lot


Advertisement