This content has been marked as final.
Show 2 replies
-
1. DefaultDS on Oracle - JBoss Startup while DB starts
nickarls Feb 9, 2011 4:17 PM (in response to newway)can you run a startup script that does something like
net start db
<insert something like tnsping check here>
net start jboss
-
2. DefaultDS on Oracle - JBoss Startup while DB starts
newway Feb 27, 2011 2:32 PM (in response to nickarls)1 of 1 people found this helpfulI can't do that since :
- I'm using a service wrapper
- I can't force the DB to start, it might not be on the same server I'm running
My solution is:
- Create a sar named 1-*.sar
- in the MBean start method parse the *-ds.xml
- use the data from the DS to create a connection to the DB
- run in a loop until you manage to create a conection.
the sar will deploy first and will pause the server startup until it will manage to create a conection to the DB