users@glassfish.java.net

Re: Database url in persistence.xml is ignored

From: <glassfish_at_javadesktop.org>
Date: Tue, 22 Jul 2008 22:32:46 PDT

Thanks, marina. Yes, the 'MYAPP' schema already exists in myappdb, and that schema can be accessed from outside of the application server using the url noted in the persistence.xml file ('jdbc:derby://localhost:1527/myappdb').

For some reason, the application server uses an alternate url ('jdbc:derby://localhost:1527/sun-appserv-samples;;create=true') to access the database/schema.
[Message sent by forum member 'choashierhardt' (choashierhardt)]

http://forums.java.net/jive/thread.jspa?messageID=288593