try {
InputStream propertyStream = new FileInputStream("jdo.properties");
Properties jdoproperties = new Properties();
jdoproperties.load(propertyStream);
jdoproperties.put("com.sun.jdori.option.ConnectionCreate", "true");
PersistenceManagerFactory pmf =
JDOHelper.getPersistenceManagerFactory(jdoproperties);
PersistenceManager pm = pmf.getPersistenceManager();
Transaction tx = pm.currentTransaction();
tx.begin();
tx.commit();
pm.close();
} catch(Exception e) {
System.err.println("Exception creating the database");
System.err.println(e);
System.exit(-1);
}