|
|
|
|
@ -91,8 +91,8 @@ public class Main implements Connector
|
|
|
|
|
{
|
|
|
|
|
server = "ws_fpalma";
|
|
|
|
|
}
|
|
|
|
|
DBManager dbm = new JDBCManager( "jdbc:mysql://" + server + "/" + dbase,
|
|
|
|
|
user, passwd , 10, 8, 8, null );
|
|
|
|
|
String url = "jdbc:mysql://" + server + "/" + dbase;
|
|
|
|
|
DBManager dbm = new JDBCManager( url, user, passwd , 10, 8, 8, null );
|
|
|
|
|
// UnicodeChecker.setUseDoubleSlash( true );
|
|
|
|
|
Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, dbm );
|
|
|
|
|
|
|
|
|
|
@ -101,6 +101,7 @@ public class Main implements Connector
|
|
|
|
|
|
|
|
|
|
Properties props = new Properties();
|
|
|
|
|
props.load( classLoader.getResourceAsStream( "speedo.properties" ) );
|
|
|
|
|
props.setProperty( "javax.jdo.option.ConnectionURL", url );
|
|
|
|
|
PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( props );
|
|
|
|
|
// Collection c = pmf.supportedOptions();
|
|
|
|
|
// System.out.println( "Options: " + c );
|
|
|
|
|
|