3 Replies Latest reply on Jul 1, 2003 10:29 AM by dominik_l

    connecting oracle db

    dominik_l

      I'm working on a session bean which has to connect to an oracle db.
      I read the postings about JBoss&Oracle, but even so I can't go ahead.

      I created the "oracle-service.xml"-file
      ...
      <jndi-name>OracleDS</jndi-name>
      ...

      But how can create a connection to the database now?
      This way doesn't work:
      "
      DriverManager.registerDriver (new oracle.jdbc.OracleDriver());;
      connection = DriverManager.getConnection("OracleDS");"

      Would be really great if someone can give an advice!
      Thanks!