JBoss EJB anomalies (JBoss 3.2.4, Eclipse, Xdoclet & Lomboz)!

admin 3

Developing CMP entity beans with JBoss 3.2.4, Eclipse and the Lomboz plug-in, I encountered the following anomalies:

  1. Apparently, ejb-generate.xml is now called xdoclet.xml
  2. When generating the EJB-classes with the Lomboz plug-in, this tutorial already mentions the following bug:

    …the deployment descriptor generated by tag @jboss is 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 the jboss.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!

  3. When working with JBoss 3.2.4, the jboss32x.server file does not work! Please replace it with this jboss32x.server for JBoss 3.2.4 and Lomboz plug-in (rename it to jboss32x.server in your Eclipse’s plugins/com.ojbectlearn.jdt.j2ee_3.0.0.rc2/servers directory).

3 thoughts on “JBoss EJB anomalies (JBoss 3.2.4, Eclipse, Xdoclet & Lomboz)!

  1. I am not able to generate the DAO interface using the @ejb.dao in the session bean

  2. Changing <ejb-ref-name> in the ejb-jar.xml (renaming MyBean to ejb/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.

Comments are closed.

Next Post

On-line Java/J2EE courses!

Facebook0TwitterLinkedinOn Sang Shin’s J2EE Programming with Passion! page, you can find many good (introductory) courses on J2EE (and related topics). Courses taught include J2EE Programming with Passion! Advanced J2EE Programming with Passion! Web Services Programming with Passion! Distributed Programming using Jini and JavaSpaces Technology XML Related posts: Attribute Oriented Programming, […]