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

    howto setup a postgre datasource?

    eldorsen

      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?
          darranl

          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.