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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Ejbdoclet, Enterprise Javabeans

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