aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing sql script at JBoss startup