2 Replies Latest reply on Jun 15, 2007 6:19 AM by alex rozario

    Database connection

    alex rozario Newbie

      hi,
      i am doing ejb 3.0+seam project in exadel eclipse IDE. i am using JBOSS server to run my application.

      well. now i need to connect my project with oracle database, i have created a database connection in database explorer. now how can i connect this database in my project. and how can i use the tables in my entity bean.

      please help me.

      i am waiting for your response.

      thanks in advance.

        • 1. Re: Database connection
          Pete Muir Master

          Lots of examples of using a database and EJB3 persistence with Seam in the examples directory. The Hibernate Entity Manager also discusses this.

          • 2. Re: Database connection
            alex rozario Newbie


            sorry sir, i cant follw you.
            can you give me that link..
            where are those examples.
            can you help me further please...

            and i had one more doubt..
            i have created an seam+ejb 3.0 project in exadel IDE. In that i used Oracle 9i as an databse and JBOSS as an application server.

            while ruinning the server it shows the following error.

            ObjectName: persistence.units:ear=New.ear,jar=NewEJB.jar,unitName=First
            State: FAILED
            Reason: javax.naming.NameNotFoundException: Oracle not bound
            I Depend On:
            jboss.jca:service=ManagedConnectionFactory,name=Oracle
            Depends On Me:
            jboss.j2ee:ear=New.ear,jar=NewEJB.jar,name=FirstEjb,service=EJB3


            where, New is my proect name contains newejb for ejb files and newweb for xhtml/jsf files. and oracle is my jndi name..

            i am in confused state.. can you help me more..

            thank you sir