This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Executing sql script at JBoss startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Executing sql script at JBoss startup" Watch "Executing sql script at JBoss startup" New topic
Author

Executing sql script at JBoss startup

Vivek Punekar
Greenhorn

Joined: Aug 25, 2009
Posts: 12

I have following scenario:
At JBoss startup, I want to update all rows in a Table where the status is 'Running' to 'Failed'. I feel this is a pretty common problem and looking for a commonly used solution for this.

Thanks in advance,
Vivek
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd just use a context startup listener or something.
 
 
subject: Executing sql script at JBoss startup
 
Similar Threads
Jboss start on system bootup
Configuring a Startup class
Jboss Server
environment variable problem
JBoss Startup and Shutdown classes