In embedded mode, your application runs in the same JVM as ,
so you can also set system properties within an application using a Properties object before loading the JDBC driver. The following
example sets derby.system.home on Windows.
Properties p = System.getProperties();
p.put("derby.system.home", "C:\databases\sample");
If you pass in a Properties object
as an argument to the DriverManager.getConnection call
when connecting to a database, those properties are used as database connection URL attributes,
not as properties of the type discussed in this book.