Home > Documentation > Developing > Tutorials > Getting familiar with the development environment > Executing SQL statements at deployment time |
There may be times where you will want to execute some cleanup or initialization SQL statements during the deployment time of, for example, a datasource. Below is an example of how this can be done.
The following are the dependencies used in this example:
my-sql.jar
containing the .sql files to be executed (this has nothing to do with MySQL, it's just a jar file containing .sql files, nothing more).We must specify a GBean in the connector deployment descriptor. This gbean will execute during deployment time. But it needs the following information:
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |