* Create and execute the files.
*/
public void process() {
EjbBundleDescriptorImpl bundle = ctx.getModuleMetaData(EjbBundleDescriptorImpl.class);
ResourceReferenceDescriptor cmpResource = bundle.getCMPResourceReference();
// If this bundle's beans are not created by Java2DB, there is nothing to do.
if (!DeploymentHelper.isJavaToDatabase(
cmpResource.getSchemaGeneratorProperties())) {
return;
}
helper = new Java2DBProcessorHelper(ctx);
helper.init();
String resourceName = cmpResource.getJndiName();
helper.setProcessorType("CMP", bundle.getName()); // NOI18N
helper.setJndiName(resourceName, bundle.getName());
// If CLI options are not set, use value from the create-tables-at-deploy
// or drop-tables-at-undeploy elements of the sun-ejb-jar.xml
boolean userCreateTables = cmpResource.isCreateTablesAtDeploy();
boolean createTables = helper.getCreateTables(userCreateTables);
boolean userDropTables = cmpResource.isDropTablesAtUndeploy();
if (logger.isLoggable(logger.FINE)) {
logger.fine("ejb.CMPProcessor.createanddroptables", //NOI18N
new Object[] {new Boolean(createTables), new Boolean(userDropTables)});
}