[jboss-user] [Beginner's Corner] - Re: JBoss + PostgreSQL services startup on Windows
PeterJ
do-not-reply at jboss.com
Sun Nov 15 11:58:18 EST 2009
When this error happens, if you try to start the JBoss AS service again, is it successful? Or do you have to first do something with PostgreSQL?
If PostgreSQL is taking too much time to start up properly, then the start of the JBoss AS service needs to be delayed until PostgreSQL is fully functional. Note that some services tell Windows that they are running before they are fully functional. Apparently, PostgreSQL does this (most of the tools used to run Java apps as services do the same thing - JBoss AS is rarely up and running when Windows thinks it is).
Are you using PostgreSQL as your DefaultDS? If not, can you change the configuration for your apps to not establish the database connections until the first user request? Or simply add in a delay before getting the connections (if you have a startup mbean doing this).
What tool are you using to run JBoss AS as a service? Perhaps that tool provides a mechanism to delay the startup.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265745#4265745
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265745
More information about the jboss-user
mailing list