I have several entity beans that use PostgreSQL for CMP persistence. When I configure JBoss to use PostgreSQL, start it up and then deploy my application, I have no trouble accessing the database. However, when I shut down and restart JBoss, it errors out when trying to deploy the application, saying that the database name is not bound. However, if I shut down JBoss, delete the application jar file from the 'deploy' directory, restart and redeploy the application, it works again. It is as if it is trying to deploy the beans before setting up the database.