| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| so are the rep.home, wsp.home, and wsp.name variables expected to be available as environment variables? -- --------------------- Michael Harris |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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 |
|
#10
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.