1 Reply Latest reply on Nov 10, 2003 7:40 AM by Darran Lofthouse

    howto setup a postgre datasource?

    eldorsen Newbie

      Does anybody know where to find a good tutorial on how to setup a datasource object for a postgresql database in jboss 3.x?

        • 1. Re: howto setup a postgre datasource?
          Darran Lofthouse Master

          Stop JBoss

          Assuming that you are running the default configuration copy the jar file containing the JDBC drivers to {jboss_home}/server/default/lib

          Look on {jboss_home}/docs/ somewhere in the folder or a sub folder there should be an example postgres-service.xml or postgres-ds.xml, copy this file to {jboss_home}/server/default/deploy

          For JBoss 3.2.2 the path to the examples is {jboss_home}/docs/examples/jca but I am not sure about the other versions.

          Edit the file that you copied to the deploy folder so that it uses your database.

          Start JBoss.