3

Using the embedded driver I can connect to my derby database using the JDBC url:

jdbc:derby:mydbname

But, I usually put the full path for the db like:

jdbc:derby:/Users/oreyes/dbs/mydbname

Is there a way I can just specify the db name and have something like a "db_path" or something like that?

OscarRyz
  • 190,799
  • 110
  • 376
  • 555

1 Answers1

3

I'm not an expert with derby, setting derby.system.home as described in developers guide seems to work as you expect.

stacker
  • 66,311
  • 27
  • 138
  • 208
  • That's the one I have just found ( a minute ago :P ) ... I'll try it. – OscarRyz Jul 12 '10 at 19:53
  • That worked, now I have to find out how to specify that property so maven can see it: http://stackoverflow.com/questions/3231797/specify-system-property-to-maven-project – OscarRyz Jul 12 '10 at 20:56