2 Replies Latest reply on Dec 5, 2005 7:47 AM by danjourno

    EJB3.0 and Jboss IDE

    danjourno

      I'm trying to put together a par file with the jboss eclipse IDE. This is my first project using both jboss and eclipse.
      I've followed through the dvd trailblazer which has been quite helpful.
      To create my persistence object I have done the following.

      1) created my database tables
      2) created a datasource file and copied put it in the jboss server dir
      3) built all my pojo's and mapped them all to the tables using ejb3 annotation
      4) created a session bean to perform all my entity manager functions.
      5) created a persistence.xml file

      I'm not at the stage of packaging the par file.
      Using the "Packaging Configurations" option in the project properties I have created a par packaging file. In this I have added everything in my bin folder.

      I am wondering how I use this tool to add my persistence.xml file?

      Also should I be creating a seperate packing file for my manager sessionbean? and if so.. should this be a .ejb3 file?

      Thirdly.. Is there anything here that I am missing?

      Regards
      Daniel

        • 1. Re: EJB3.0 and Jboss IDE
          schmiegelow

          Hello,

          adding a file is quite easy. In the Packaging Configuration Panel just right click on the entry with your .par file and select "Add File". Browse the file system to your custom persistence.xml file, enter "META-INF" in the prefix field (that's important since it indicates in which target dir the file will be placed in the PAR). That's it.

          • 2. Re: EJB3.0 and Jboss IDE
            danjourno

            cool, thanks. :D