Image

Imagestipe wrote in Imagejava_dev

JDBC in JBoss

In the application I'm writing I need to do some database access (reads and writes) from a session bean. I'm okay with getting a DataSource and accessing the DB, but I'm not clear on how I tell JBoss to create the required table when the application is initially deployed.

Is there some way to specify in the deployment descriptor (or jboss.xml) that a table needs to be created?