You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by ChadDavis <ch...@gmail.com> on 2009/12/14 21:07:32 UTC

derby pm configuration

In the URL parameter, what is the "create=true" all about?  Does this
refer to whether the DB schema is created on initialization, if it
doesn't already exist?

<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
          <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>

Re: derby pm configuration

Posted by Rakesh Vidyadharan <ra...@sptci.com>.
Yes, that is what that configuration parameter does.

Rakesh

On Dec 14, 2009, at 2:07 PM, ChadDavis <ch...@gmail.com>  
wrote:

> In the URL parameter, what is the "create=true" all about?  Does this
> refer to whether the DB schema is created on initialization, if it
> doesn't already exist?
>
> <PersistenceManager
> class= 
> "org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager" 
> >
>          <param name="url" value="jdbc:derby:${wsp.home}/ 
> db;create=true"/>
>          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
> </PersistenceManager>

Re: derby pm configuration

Posted by Thomas Müller <th...@day.com>.
Hi,

> What component automatically creates the scheme if it doesn't exist?  The PM?

See http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ#Bundle_Database_PM
"The tables are automatically created. To create them manually, see
ManuallyCreatingDatabaseTables."

Regards,
Thomas

Re: derby pm configuration

Posted by ChadDavis <ch...@gmail.com>.
On Mon, Dec 14, 2009 at 3:25 PM, Guo Du <mr...@gmail.com> wrote:
> On Mon, Dec 14, 2009 at 8:07 PM, ChadDavis <ch...@gmail.com> wrote:
>> In the URL parameter, what is the "create=true" all about?  Does this
>> refer to whether the DB schema is created on initialization, if it
>> doesn't already exist?
> It's a derby parameter to create db if the db does not exist. No
> relationship to jackrabbit schema which will be created automatically
> if tables doesn't exist.

What component automatically creates the scheme if it doesn't exist?  The PM?

Re: derby pm configuration

Posted by Guo Du <mr...@gmail.com>.
On Mon, Dec 14, 2009 at 8:07 PM, ChadDavis <ch...@gmail.com> wrote:
> In the URL parameter, what is the "create=true" all about?  Does this
> refer to whether the DB schema is created on initialization, if it
> doesn't already exist?
It's a derby parameter to create db if the db does not exist. No
relationship to jackrabbit schema which will be created automatically
if tables doesn't exist.

More details:
http://db.apache.org/derby/docs/10.5/ref/rrefattrib26867.html

-Guo