Developing CMP entity beans with JBoss 3.2.4, Eclipse and the Lomboz plug-in, I encountered the following anomalies:
- Apparently,
ejb-generate.xmlis now calledxdoclet.xml - When generating the EJB-classes with the Lomboz plug-in, this tutorial already mentions the following bug:
…the deployment descriptor generated by tag
@jbossis wrong, because for local referencing of MyBean tag<ejb-ref>should be<ejb-local-ref>. There seems to be a bug in this tag, so we will correct this manually by changing the tag in thejboss.xml…The tag mentioned is:
ref-name=”MyBeanLocal”
jndi-name="MyBeanLocal"In Addition, I had to change the element
<ejb-ref-name>MyBeanLocal</ejb-ref-name>to
<ejb-ref-name>ejb/MyBeanLocal<ejb-ref-name>in the
ejb-jar.xmlas well! - When working with JBoss 3.2.4, the
jboss32x.serverfile does not work! Please replace it with this jboss32x.server for JBoss 3.2.4 and Lomboz plug-in (rename it tojboss32x.serverin your Eclipse’splugins/com.ojbectlearn.jdt.j2ee_3.0.0.rc2/serversdirectory).

I am not able to generate the DAO interface using the @ejb.dao in the session bean
See also @jboss.ejb-ref-jndi (0..*) unable to create tag in jboss.xml .
Changing
<ejb-ref-name>in theejb-jar.xml(renamingMyBeantoejb/MyBean) can be prevented by changing the Xdoclet tag in the source accordingly.Moreover, with the JBoss plug-in in Eclipse it seems that you can configure your XDoclet tags… more on this to follow.