3 Replies Latest reply on Jun 14, 2004 3:41 AM by meissa

    Where should I config the data source ?

    yundi

      I know if I wanna get the connection by data source.
      I need to have a jndi configured.
      Where should I put it and how ?

      One more question, did the data source of jboss support connection pool ?

        • 1. Re: Where should I config the data source ?

          in the deploy dir of your config set.
          As an example you can see hsqldb-ds.xml in the deploy directory of the default config set.

          • 2. Re: Where should I config the data source ?
            yundi

             

            "meissa" wrote:
            in the deploy dir of your config set.
            As an example you can see hsqldb-ds.xml in the deploy directory of the default config set.


            Thanks for your reply.
            So, should I just edit the hsqldb.xml in my deploy dir ?

            • 3. Re: Where should I config the data source ?

              Go to the /doc/examples/jca directory of you jboss installation. There are
              example configurations for many databases.
              You'll probably find the config file that suit to you database.
              The hsqldb-ds.xml is an example for hypersonic database.
              You must put the file file in your deploy dir after adjusting required parameter.

              Of course, the driver class needs to be loaded onto jboss classpath. The lib directory of your config set is a good place.