facebook

EJB CMP

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #206058 Reply

    Andrew Cheng
    Participant

    Can MyEclipse generate ejb CMP2.0 for JBOSS
    3.xx by connect direct to
    connect to Oracle database table. If not, how CMP is generated?

    all EJB deployment script eg jboss.xml; jbosscmp-jdbc.xml generated?

    #206060 Reply

    Riyad Kalla
    Member

    Moved to support forum.

    #206111 Reply

    Greg
    Member

    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. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: EJB CMP

You must be logged in to post in the forum log in