Hi,
I'm trying to xdoclet/compile/build/deploy the sample referred to in the 'JBOSS 3.0 Quick Start Guide' on JBOSS3.2. XDoclet verion 1.1.2 is not generating descriptors in my ejb-jar.xml file for the finder methods specified. Can anyone help? The XDoclet tags in the TestEntityBean look like this:
/**
* The Entity bean represents a TestEntity
*
* @author Andreas Schaefer
* @version $Revision: 1.1 $
*
* @ejb:bean name="TestEntity"
* display-name="TestEntity working on projects to support clients"
* type="CMP"
* jndi-name="ejb/test/TestEntity"
*
* @ejb:env-entry name="SequenceName"
* value="TestEntity"
*
* @ejb:ejb-ref ejb-name="test/SequenceGenerator"
*
* @ejb:transaction type="Required"
*
* @ejb:data-object extends="test.interfaces.AbstractData"
* setdata="false"
*
* @ejb:finder signature="java.util.Collection findAll()"
*
* @ejb:finder signature="test.interfaces.TestEntity findByName( java.lang.String pSurname, java.lang.String pLastName )"
*
* @jboss:finder-query name="findByName"
* query="First_Name = {0} AND Last_Name = {1}"
*
* @ejb:finder signature="test.interfaces.TestEntity findAnotherByName( int pId, java.lang.String pSurname, java.lang.String pLastName )"
*
* @jboss:finder-query name="findAnotherByName"
* query="Id != {0} AND First_Name = {1} AND Last_Name = {2}"
*
* @jboss:table-name table-name="TestEntity"
*
* @jboss:create-table create="true"
*
* @jboss:remove-table remove="true"
**/
Also as an aside I've changed the xdoclet tag for the TestEntityBean so that the resulting deployment descriptor would read :
ejb <ejb-name>test/TestEntity</ejb-name>
as oppsed to :
ejb <ejb-name>test/TestEntity</ejb-name>
This is because JBOSS 3.2 doesn't like the former ejb-name.
below details the change:
* @ejb:bean name="test/TestEntity"
* display-name="TestEntity working on projects to support clients"
* type="CMP"
* jndi-name="ejb/test/TestEntity"
To:
* @ejb:bean name="TestEntity"
* display-name="TestEntity working on projects to support clients"
* type="CMP"
* jndi-name="ejb/test/TestEntity"
Many Thanks