repository.xml

This is a discussion on repository.xml within the Apache forums in Application Servers & Tools category; so are the rep.home, wsp.home, and wsp.name variables expected to be available as environment variables? -- --------------------- Michael Harris...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-21-2008, 10:56 AM
Michael Harris
Guest
 
Default repository.xml

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



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

Reply With Quote
  #2  
Old 07-21-2008, 11:01 AM
Jukka Zitting
Guest
 
Default Re: repository.xml

Hi,

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


No.

BR,

Jukka Zitting

Reply With Quote
  #3  
Old 07-21-2008, 11:04 AM
Michael Harris
Guest
 
Default Re: repository.xml

BR?

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

> Hi,
>
> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
> <michael.e.harris@gmail.com> 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

Reply With Quote
  #4  
Old 07-21-2008, 11:22 AM
Alexander Klimetschek
Guest
 
Default Re: repository.xml

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@gmail.com> wrote:
> BR?
>
> On Mon, Jul 21, 2008 at 11:01 AM, Jukka Zitting <jukka.zitting@gmail.com>
> wrote:
>
>> Hi,
>>
>> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
>> <michael.e.harris@gmail.com> 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@day.com

Reply With Quote
  #5  
Old 07-21-2008, 11:26 AM
Michael Harris
Guest
 
Default Re: repository.xml

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@day.com>
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@gmail.com> wrote:
> > BR?
> >
> > On Mon, Jul 21, 2008 at 11:01 AM, Jukka Zitting <jukka.zitting@gmail.com
> >
> > wrote:
> >
> >> Hi,
> >>
> >> On Mon, Jul 21, 2008 at 5:56 PM, Michael Harris
> >> <michael.e.harris@gmail.com> 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@day.com
>




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

Reply With Quote
  #6  
Old 07-21-2008, 02:11 PM
Alexander Klimetschek
Guest
 
Default Re: repository.xml

On Mon, Jul 21, 2008 at 5:26 PM, Michael Harris
<michael.e.harris@gmail.com> 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@day.com

Reply With Quote
  #7  
Old 07-21-2008, 02:13 PM
Alexander Klimetschek
Guest
 
Default Re: repository.xml

On Mon, Jul 21, 2008 at 8:11 PM, Alexander Klimetschek <aklimets@day.com> 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@day.com

Reply With Quote
  #8  
Old 07-21-2008, 02:23 PM
Michael Harris
Guest
 
Default Re: repository.xml

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@day.com>
wrote:

> On Mon, Jul 21, 2008 at 8:11 PM, Alexander Klimetschek <aklimets@day.com>
> 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@day.com
>




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

Reply With Quote
  #9  
Old 07-21-2008, 05:23 PM
Alexander Klimetschek
Guest
 
Default Re: repository.xml

On Mon, Jul 21, 2008 at 8:23 PM, Michael Harris
<michael.e.harris@gmail.com> 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@day.com

Reply With Quote
  #10  
Old 07-22-2008, 05:29 AM
Jukka Zitting
Guest
 
Default Re: repository.xml

Hi,

On Mon, Jul 21, 2008 at 9:23 PM, Michael Harris
<michael.e.harris@gmail.com> 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

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.