repository.xml

View: New views
10 Messages — Rating Filter:   Alert me  

repository.xml

by shrndegruv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

so are the rep.home, wsp.home, and wsp.name variables expected to be
available as environment variables?



--
---------------------
Michael Harris

Re: repository.xml

by Jukka Zitting :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
<michael.e.harris@...> wrote:
> so are the rep.home, wsp.home, and wsp.name variables expected to be
> available as environment variables?

No.

BR,

Jukka Zitting

Re: repository.xml

by shrndegruv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

BR?

On Mon, Jul 21, 2008 at 11:01 AM, Jukka Zitting <jukka.zitting@...>
wrote:

> Hi,
>
> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
> <michael.e.harris@...> wrote:
> > so are the rep.home, wsp.home, and wsp.name variables expected to be
> > available as environment variables?
>
> No.
>
> BR,
>
> Jukka Zitting
>



--
---------------------
Michael Harris

Re: repository.xml

by Alexander Klimetschek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's just "Best Regards", Jukka's standard mail footer ;-)

To elaborate: rep.home, wsp.home and wsp.name are only valid inside
the repository.xml and workspace.xml (wsp only inside the workspace
element). There isn't any other place I can think of where the scope
would match their value. An environment var would be a global variable
for a single JVM (for example), thus it couldn't differentiate between
different workspaces.

Regards,
Alex

On Mon, Jul 21, 2008 at 5:04 PM, Michael Harris
<michael.e.harris@...> wrote:

> BR?
>
> On Mon, Jul 21, 2008 at 11:01 AM, Jukka Zitting <jukka.zitting@...>
> wrote:
>
>> Hi,
>>
>> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
>> <michael.e.harris@...> wrote:
>> > so are the rep.home, wsp.home, and wsp.name variables expected to be
>> > available as environment variables?
>>
>> No.
>>
>> BR,
>>
>> Jukka Zitting
>>
>
>
>
> --
> ---------------------
> Michael Harris
>



--
Alexander Klimetschek
alexander.klimetschek@...

Re: repository.xml

by shrndegruv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hmm

ok backing up, how would those variables get values?  So lets say I have a
TransientRepo, and I construct it with a repository.xml with ${rep.home}.
and ${wsp.home}.  how do those variables get configured?

michael.


On Mon, Jul 21, 2008 at 11:22 AM, Alexander Klimetschek <aklimets@...>
wrote:

> It's just "Best Regards", Jukka's standard mail footer ;-)
>
> To elaborate: rep.home, wsp.home and wsp.name are only valid inside
> the repository.xml and workspace.xml (wsp only inside the workspace
> element). There isn't any other place I can think of where the scope
> would match their value. An environment var would be a global variable
> for a single JVM (for example), thus it couldn't differentiate between
> different workspaces.
>
> Regards,
> Alex
>
> On Mon, Jul 21, 2008 at 5:04 PM, Michael Harris
> <michael.e.harris@...> wrote:
> > BR?
> >
> > On Mon, Jul 21, 2008 at 11:01 AM, Jukka Zitting <jukka.zitting@...
> >
> > wrote:
> >
> >> Hi,
> >>
> >> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
> >> <michael.e.harris@...> wrote:
> >> > so are the rep.home, wsp.home, and wsp.name variables expected to be
> >> > available as environment variables?
> >>
> >> No.
> >>
> >> BR,
> >>
> >> Jukka Zitting
> >>
> >
> >
> >
> > --
> > ---------------------
> > Michael Harris
> >
>
>
>
> --
> Alexander Klimetschek
> alexander.klimetschek@...
>



--
---------------------
Michael Harris

Re: repository.xml

by Alexander Klimetschek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 21, 2008 at 5:26 PM, Michael Harris
<michael.e.harris@...> wrote:
> ok backing up, how would those variables get values?  So lets say I have a
> TransientRepo, and I construct it with a repository.xml with ${rep.home}.
> and ${wsp.home}.  how do those variables get configured?

The jackrabbit configuration parser sets them for you. You only have
to use them ;-)

"rep.home" is the home directory you specified for the repository (eg.
in the constructor of TransientRepository)
"wsp.name" is the name of the current workspace
"wsp.home" is the home directory of the current workspace

The home directory of the current workspace is created by appending
the workspace name to the value of "rootPath" in the Workspaces
element of the repository.xml.

Regards,
Alex

--
Alexander Klimetschek
alexander.klimetschek@...

Re: repository.xml

by Alexander Klimetschek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 21, 2008 at 8:11 PM, Alexander Klimetschek <aklimets@...> wrote:
> The home directory of the current workspace is created by appending
> the workspace name to the value of "rootPath" in the Workspaces
> element of the repository.xml.

And to add: Jackrabbit finds all workspaces by looking at all
subdirectories of Workspaces@rootPath (for example on a subsequent
startup).

Regards,
Alex

--
Alexander Klimetschek
alexander.klimetschek@...

Re: repository.xml

by shrndegruv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, so users dont set them.  I guess I wonder why they exist as variables in
the conf if the user doesn't interact with them....

On Mon, Jul 21, 2008 at 2:13 PM, Alexander Klimetschek <aklimets@...>
wrote:

> On Mon, Jul 21, 2008 at 8:11 PM, Alexander Klimetschek <aklimets@...>
> wrote:
> > The home directory of the current workspace is created by appending
> > the workspace name to the value of "rootPath" in the Workspaces
> > element of the repository.xml.
>
> And to add: Jackrabbit finds all workspaces by looking at all
> subdirectories of Workspaces@rootPath (for example on a subsequent
> startup).
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@...
>



--
---------------------
Michael Harris

Re: repository.xml

by Alexander Klimetschek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 21, 2008 at 8:23 PM, Michael Harris
<michael.e.harris@...> wrote:
> Ok, so users dont set them.  I guess I wonder why they exist as variables in
> the conf if the user doesn't interact with them....

To change the config, eg. different paths for the workspaces inside
rep.home, custom schema names for database persistence managers, etc.

Regards,
Alex

--
Alexander Klimetschek
alexander.klimetschek@...

Re: repository.xml

by Jukka Zitting :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Mon, Jul 21, 2008 at 9:23 PM, Michael Harris
<michael.e.harris@...> wrote:
> Ok, so users dont set them.  I guess I wonder why they exist as variables in
> the conf if the user doesn't interact with them....

The user actually does set the ${rep.home} variable in the Jackrabbit
startup configuration (for example the bootstrap.properties file of
jackrabbit-webapp, or the HomeDir configuration option in
jackrabbit-jca). And as mentioned by Alexander, the ${wsp.name} and
${wsp.home} variables are based on the workspaces that the user has
created.

BR,

Jukka Zitting