Sunday, October 23, 2005

JBoss and Postgresql

To setup JBoss to use postgresql instead of hsqldb follow this procedure
  1. Shutdown JBoss
  2. delete hsqldb-ds.xml from [server]/deploy
  3. copy postgres-ds.xml from [jboss.home]/docs/examples to [server]/deploy
  4. edit postgres-ds.xml and replace all occurences of PostgresDS with DefaultDS
  5. delete hsqldb-jdbc?-service.xml (leave hsqldb-jdbc-state-service.xml there) [server]/deploy/jms
  6. copy postgres-jdbc3-service.xml [jboss.home]/docs/examples/jms to [server]deploy/jms
  7. edit postgres-jdbc3-service.xml and replace all occurences of PostgresDS with DefaultDS
  8. Start JBoss
  9. Adapt your applications and redeploy them


Tested with JBoss version 4.0.3 and postgresql 8.0.4-21

0 Comments:

Post a Comment

<< Home