<mailto:
hollosyt@xxxxxxxxx>> wrote:
>>
>> Also check out my article here:
>>
>>
http://www.weheartcode.com/2008/08/27/eclipselink-in-j2se-rcp-applications/
>>
>> It explains one way:
>>
>> properties.put(PersistenceUnitProperties.TARGET_DATABASE,
"Derby");
>> properties.put(PersistenceUnitProperties.JDBC_DRIVER,
>> "org.apache.derby.jdbc.ClientDriver");
>> properties.put(PersistenceUnitProperties.JDBC_URL,
>> "jdbc:derby://localhost:1527/sample;create=true");
>> properties.put(PersistenceUnitProperties.JDBC_USER, "app");
>> properties.put(PersistenceUnitProperties.JDBC_PASSWORD,
"app");
>> properties
>> .put(PersistenceUnitProperties.JDBC_READ_CONNECTIONS_MIN,
>> "1");
>>
>>
properties.put(PersistenceUnitProperties.JDBC_WRITE_CONNECTIONS_MIN,
>> "1");
>>
>> properties.put(PersistenceUnitProperties.BATCH_WRITING,
"JDBC");
>> properties.put(PersistenceUnitProperties.CLASSLOADER,
>> ComicsEntityManagerFactory.class.getClassLoader());
>> properties.put("eclipselink.logging.level", "FINE");
>> properties.put("eclipselink.logging.timestamp", "false");
>> properties.put("eclipselink.logging.session", "false");
>> properties.put("eclipselink.logging.thread", "false");
>>
>> emf = new
>> PersistenceProvider().createEntityManagerFactory("comics",
>> properties);
>>
>>
>> ./tch
>>
>>
>>
>> On Mon, Dec 8, 2008 at 9:19 AM, Tom Ware <
tom.ware@xxxxxxxxxx