1 Reply Latest reply on Feb 19, 2003 7:29 AM by Juha Lindfors

    datasource not bound question

    smeagel Newbie

      I am unable to get any datasource to work (except Hypersonic).
      i copy the -service.xml into the
      server/default/conf/
      dir and edit it.

      do i have to do something else.
      I am referencing it
      DataSource ds = (DataSource) new InitialContext().lookup("java:/comp/env/MySqlDS");

      and like
      DataSource ds = (DataSource) new InitialContext().lookup("java:/MySqlDS");

      and it does not lookup.

      I can not find it in my JNDI tree (in jmx-console)
      http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss%3Aservice%3DJNDIView

      what do i have to do to register it as a datasource?
      i thought the standardjaws.xml was obsolete?
      and it doesn't like 2 datasources in it either.?

      please help!!!!