Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Ejbdoclet, Enterprise Javabeans

  • 25-01-2004 07: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