3 Replies Latest reply on Aug 4, 2004 10:32 PM by yasudazzz

    DataSource Problem

    sachin_powale

      I am using jboss3.2.5 with Tomcat as web server. I want to configure the datasource name. But we are not using ejbs. The application is just using simple java classes, jsp and servlets. The DataBase is MySQL. How to configure the DataSource name in jboss for the application. Is it possible using server.xml from
      jboss-3.2.5\server\default\deploy\jbossweb-tomcat50.sar\server.xml ?
      thanks and regards,
      Sachin

        • 1. Re: DataSource Problem
          yasudazzz

          Copy mysql-ds.xml from jboss-3.2.5/docs/examples/jca into your deploy directory, and edit it.

          • 2. Re: DataSource Problem
            sachin_powale

            You have specified the file but what changes to do has not been specified.
            Please tell the steps since I am new to this all.
            Waiting for a reply.
            Sachin

            • 3. Re: DataSource Problem
              yasudazzz

              Please open your mysql-ds.xml with notepad.exe or vi or less or emacs.

              You have to change followings:

              1 "mysql-hostname" into your MySQL server address. IP address is ok.
              2 "jbossdb" into your db name. It depends on your MySQL environment.
              3 "x" into your db account name.
              4 "y" into password for db account name.

              If you would like to change DataSource name from MySqlDS to another,
              you have to change "MySqlDS".

              good luck.