ayc868,
After creating a entity bean with the EJB wizard here are the steps to get CMP and JBoss to work with a entity bean.
1. Bring up project properties page.
2. Click on MyEclipse-XDoclet
3. Right-click in configurations area and select “Add Standard”
4. Select Standard EJB
5. In the ejbdoclet attributes make sure that entitycmp is checked.
6. select entitycmp and change version to “2.x”
7. Right-click “ejbdoclet” and select Add
8. Select jboss and click OK
9. In the jboss properties make sure that Version is set to “3.2” or whatever jboss version you have. And set destDir to “src/META-INF”
10. Then click ok and a xdoclet-build.xml should be generated in the root of your project.
11. Right-click EJB project, under MyEclipse click “Run XDoclet”
After xdoclet runs, you should see three files generated in META-INF dir: ejb.xml, jboss.xml, and jbosscmp-jbdc.xml.
Most of this process is covered in the EJB tutorial in the MyEclipse documentation under Tasks -> Working with Enterprise JavaBeans -> Creating a EJB. However, I have outlined the extra steps you need to make it work with CMP in JBOSS.
Please let me know if this helps you as this is the first time I’ve written these steps down and I’m not for sure if it makes sense. 🙂