You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Matthew Reeves <mr...@Datranmedia.com> on 2011/08/29 21:09:20 UTC

configure persistence manager URL parameter dynamically

I've been searching the documentation for a couple days and while I've been able to figure out how to configure a persistence manager statically via the repository.xml file, I haven't yet seen anything explaining how to configure the URL parameter dynamically or within the application code.

Is it possible when creating a TransientRepository to pass in properties otherwise defined in the repository.xml file?  Or perhaps creating/configuring an MSSqlPersistenceManager object with the URL property set in the application code?

Re: configure persistence manager URL parameter dynamically

Posted by Aparna Chaudhary <ap...@gmail.com>.
Hi Matthew,

Jackrabbit supports configuration variables in repository.xml. You can set
the DB URL using configuration variable of the form ${repo.db.url} and use
the system property for resolution.

See https://issues.apache.org/jira/browse/JCR-1304 and
http://jackrabbit.apache.org/jackrabbit-configuration.html#JackrabbitConfiguration-Configurationvariables

Regards,
Aparna
<https://issues.apache.org/jira/browse/JCR-1304>

On Mon, Aug 29, 2011 at 9:09 PM, Matthew Reeves <mr...@datranmedia.com>wrote:

> I've been searching the documentation for a couple days and while I've been
> able to figure out how to configure a persistence manager statically via the
> repository.xml file, I haven't yet seen anything explaining how to configure
> the URL parameter dynamically or within the application code.
>
> Is it possible when creating a TransientRepository to pass in properties
> otherwise defined in the repository.xml file?  Or perhaps
> creating/configuring an MSSqlPersistenceManager object with the URL property
> set in the application code?
>