1 Reply Latest reply on Oct 7, 2002 5:40 PM by Jere Jenkins

    Getting a pool connection

    Barbara Baughman Newbie

      I am trying to figure out the secret code to get a pool connection for an Oracle database. I can't seem to get the JNDI name right.


      The startup log code says:
      [INFO,Jams] XA Connection pool Jams bound to java:/Jams

      but the following code:

      DataSource ds=(DataSource) ctx.lookup("java:/Jams");

      gives the error message:

      javax.naming.NameNotFoundException: Jams not bound

      I've also tried about 10 variations with comp env jdbc with no luck.

      TIA for any help.