Fixing Derby connections on OS X without using derby.properties

To get Derby connections to work on OS X from within your Java code, you need to use the following piece of code:


	Properties p = System.getProperties();
	p.put("derby.storage.fileSyncTransactionLog", "true");

Do this right before you load your Derby driver:


	try {
		Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
	}

Within the Web Tools tutorial, this is done in the init() of the ScheduleServlet.