Re: Help needed with geronimo.sh
On Apr 26, 2007, at 9:17 AM, Donald Woods wrote: Can't we just reorganize the existing layout to be a simpler - GHOME//template/var/... GHOME//template/deploy/ GHOME//default/var/... GHOME//default/deploy/ where could be a word we all vote on, like "instances" or "servers". If I were a user I'd rather have my default be something that would be consistent with my configuration as it grows. For instance, I install and have a "default instance" and things are good. Now I want to add another one. Do I now have default and default02? Or default and geronimo01? Actually, I'd probably like something like geronimo01 as a default and add a geronimo02 as needed. This way I'm not forced into an inconsistent naming scheme. Although one could argue that a user who is sophisticated enough to run multiple instances would be able to work around it they will generally work around it after getting burned once. Anyway, just going with the simple theme we've always talked about.
Re: Help needed with geronimo.sh
On Apr 26, 2007, at 8:43 AM, Anita Kulshreshtha wrote: --- Matt Hogstrom <[EMAIL PROTECTED]> wrote: I have to go back and see the directory layout your proposing. I iki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html didn't see a specific proposal in the JIRA Some information is here: http://cwiki.apache.org/GMOxDOC20/running-multiple-instances-of- geronimo.html Some Background info: Currently the following dir/files are used to run an instance: deploy var - activemq catalina config derby log security shared temp txlog I like hot deploy directory being outside of the 'var'. All these directories go under G/foo for an instance named foo. The 'var' created by build has: var config log security temp My list was illustrative because I am too lazy...sorry if it was confusing. If the tree doesn't exist we fail with a message like: "Server instance 'geronimo03' has not been initialized. Please run the serverInstance.sh script to create a new instance." The issue here is do we make a copy (for running default instance) during build or ask our _developers_ to get used to this message and using serverInstance.sh. IIUC, you are saying that create the template and the default instance during build. And provide a script for creating additional instances. Sounds like we're almost there. yup.. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
Some clarification (inline)... --- Anita Kulshreshtha <[EMAIL PROTECTED]> wrote: > > --- Matt Hogstrom <[EMAIL PROTECTED]> wrote: > > > I have to go back and see the directory layout your proposing. I > iki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html > > didn't see a specific proposal in the JIRA > Some information is here: > http://cwiki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html > > > > How about for purposes of this discussion: > > > > $G == GERONIMO_HOME > > > > We organize servers by default as: > > > > $G/var/servers/geronimo01/config > > logs > > tmp > > > > and have > > > > $G/var/config > >logs > >tmp > > be a template that can be copied into new servers. This way users > > > could easily customize their default. > > Some Background info: >Currently the following dir/files are used to run an instance: > > deploy > var - > activemq > catalina > config > derby > log > security > shared > temp > txlog >I like hot deploy directory being outside of the 'var'. All these > directories go under G/foo for an instance named foo. The 'var' > created > by build has: > > var >config >log >security >temp These (4) are the only things needed to be copied to create an instance. All the others will be added by the server under G/foo for an instance named foo. > > >If the tree doesn't exist we fail with a message like: "Server > >instance 'geronimo03' has not been initialized. Please run the > >serverInstance.sh script to create a new instance." > >The issue here is do we make a copy (for running default instance) > during build or ask our _developers_ to get used to this message and > using serverInstance.sh. IIUC, you are saying that create the > template > and the default instance during build. And provide a script for > creating additional instances. > > >Sounds like we're almost there. > yup.. > > Thanks > Anita > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
So, we have 2 directories that need to be created for every instance - /deploy /var The easiest way to keep users (who will have less working knowledge of Geronimo than us developers) from screwing up their server when trying to use multiple instances, is to put both of those directories under another "instance" directory, including the base template files. Can't we just reorganize the existing layout to be a simpler - GHOME//template/var/... GHOME//template/deploy/ GHOME//default/var/... GHOME//default/deploy/ where could be a word we all vote on, like "instances" or "servers". That way, we always have a "default" server configured and available for users and the geronimo-maven-plugin to use... Do we need to include the /bin directory in there too, given the geronimo script has JVM options in it and may need to be customized for different instances??? I could also go along with leaving out the directory, as long as we agreed on placing the "template" files and the "default" instance in well named directories under GHOME -Donald Anita Kulshreshtha wrote: --- Matt Hogstrom <[EMAIL PROTECTED]> wrote: I have to go back and see the directory layout your proposing. I iki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html didn't see a specific proposal in the JIRA Some information is here: http://cwiki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html How about for purposes of this discussion: $G == GERONIMO_HOME We organize servers by default as: > $G/var/servers/geronimo01/config logs tmp and have $G/var/config logs tmp be a template that can be copied into new servers. This way users could easily customize their default. Some Background info: Currently the following dir/files are used to run an instance: deploy var - activemq catalina config derby log security shared temp txlog I like hot deploy directory being outside of the 'var'. All these directories go under G/foo for an instance named foo. The 'var' created by build has: var config log security temp If the tree doesn't exist we fail with a message like: "Server instance 'geronimo03' has not been initialized. Please run the serverInstance.sh script to create a new instance." The issue here is do we make a copy (for running default instance) during build or ask our _developers_ to get used to this message and using serverInstance.sh. IIUC, you are saying that create the template and the default instance during build. And provide a script for creating additional instances. Sounds like we're almost there. yup.. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Help needed with geronimo.sh
--- Matt Hogstrom <[EMAIL PROTECTED]> wrote: > I have to go back and see the directory layout your proposing. I iki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html > didn't see a specific proposal in the JIRA Some information is here: http://cwiki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html > > How about for purposes of this discussion: > > $G == GERONIMO_HOME > > We organize servers by default as: > > $G/var/servers/geronimo01/config > logs > tmp > > and have > > $G/var/config >logs >tmp > be a template that can be copied into new servers. This way users > could easily customize their default. Some Background info: Currently the following dir/files are used to run an instance: deploy var - activemq catalina config derby log security shared temp txlog I like hot deploy directory being outside of the 'var'. All these directories go under G/foo for an instance named foo. The 'var' created by build has: var config log security temp >If the tree doesn't exist we fail with a message like: "Server >instance 'geronimo03' has not been initialized. Please run the >serverInstance.sh script to create a new instance." The issue here is do we make a copy (for running default instance) during build or ask our _developers_ to get used to this message and using serverInstance.sh. IIUC, you are saying that create the template and the default instance during build. And provide a script for creating additional instances. >Sounds like we're almost there. yup.. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
--- Donald Woods <[EMAIL PROTECTED]> wrote: > The other thought with preserving the base /var files in a jar/zip - > it allows an > admin/root user to install the base server files and then allow users > to create > their own instances by extracting the JEE5 or Minimal var jar/zip > bundle (or a > custom bundle that their IT guys create per dept or project.) The base server files are different for each assembly, e.g. the minimal assemblies are smaller. They come with their own 'var' (different config.xml). Currently extracting JEE5 'var' in minimal image will not work. One advantage of zipped var is that it can not get accidentally corrupted! Thanks Anita > > Either way works for me, as we can always create a Java or JMX > wrapper for > creating/deleting instances in a future release. > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
I have to go back and see the directory layout your proposing. I didn't see a specific proposal in the JIRA so if I'm covering existing ground my apologies. How about for purposes of this discussion: $G == GERONIMO_HOME We organize servers by default as: $G/var/servers/geronimo01/config logs tmp and have $G/var/config logs tmp be a template that can be copied into new servers. This way users could easily customize their default. Then, when a server instance is starting if the directory is not there you fail with a message. Suppose we want to start Geronimo server geronimo03. The user provides the required parm: -Dorg.apache.geronimo.server.name=geronimo03 when starting the server. If the tree doesn't exist we fail with a message like: "Server instance 'geronimo03' has not been initialized. Please run the serverInstance.sh script to create a new instance." The serverInstance.sh script would simply copy the template files into a new tree like: $G/var/servers/geronimo03/config logs tmp This way the server operates out of the box in this configuration with a default name, the server itself does not have to manage the environment and the user has the usability increased because we have a script that will set things up. How does this approach sound? Sounds like we're almost there. On Apr 25, 2007, at 11:47 PM, Donald Woods wrote: If I was creating new server instances, I'd like to always start with a "known" var/config.xml
Re: Help needed with geronimo.sh
If I was creating new server instances, I'd like to always start with a "known" var/config.xml The other thought with preserving the base /var files in a jar/zip - it allows an admin/root user to install the base server files and then allow users to create their own instances by extracting the JEE5 or Minimal var jar/zip bundle (or a custom bundle that their IT guys create per dept or project.) Either way works for me, as we can always create a Java or JMX wrapper for creating/deleting instances in a future release. -Donald Jason Dillon wrote: Actually, what is in var that needs to be so pristine? Stuff put into var dirs are generally very dynamic and heavily state driven... not sure why that would need to be kept pristine across instances... sans the log4j configuration files, which really belong in an etc/ or conf/ and no in var/... --jason On Apr 25, 2007, at 7:25 PM, Donald Woods wrote: What about creating a jar/zip of the var directory when the assembly is created, so you always have a pristine copy and could easily use a script to unjar/unzip it into a new directory via the user's JVM? -Donald Anita Kulshreshtha wrote: --- David Jencks <[EMAIL PROTECTED]> wrote: I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. This is needed because we need to keep a pristine copy of 'var' directory to create additional instances of geronimo. A user should be able to use the installed image _any_ time to create additional instances. In other words we need two copies of 'var' directory, one to create additional instance and one to start the 'base server'. We could either create var and geronimo/var at build time or copy 'var' to geronimo/var when the image is used to start geronimo very _first_ time. Thanks Anita We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Help needed with geronimo.sh
On Apr 25, 2007, at 7:31 PM, Anita Kulshreshtha wrote: I would like to set the property o.a.g.server.name=geronimo in MainConfigurationBootstrapper. This will prevent accidental corruption of 'var' directory. If the user did not create a geronim/var the server will not start. Okay, so if the dir doesn't exist, then die quickly with an error message. --jason
Re: Help needed with geronimo.sh
Actually, what is in var that needs to be so pristine? Stuff put into var dirs are generally very dynamic and heavily state driven... not sure why that would need to be kept pristine across instances... sans the log4j configuration files, which really belong in an etc/ or conf/ and no in var/... --jason On Apr 25, 2007, at 7:25 PM, Donald Woods wrote: What about creating a jar/zip of the var directory when the assembly is created, so you always have a pristine copy and could easily use a script to unjar/unzip it into a new directory via the user's JVM? -Donald Anita Kulshreshtha wrote: --- David Jencks <[EMAIL PROTECTED]> wrote: I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. This is needed because we need to keep a pristine copy of 'var' directory to create additional instances of geronimo. A user should be able to use the installed image _any_ time to create additional instances. In other words we need two copies of 'var' directory, one to create additional instance and one to start the 'base server'. We could either create var and geronimo/var at build time or copy 'var' to geronimo/var when the image is used to start geronimo very _first_ time. Thanks Anita We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
I would like to set the property o.a.g.server.name=geronimo in MainConfigurationBootstrapper. This will prevent accidental corruption of 'var' directory. If the user did not create a geronim/var the server will not start. Thanks Anita --- Jason Dillon <[EMAIL PROTECTED]> wrote: > Just make it a manual step for now... as time goes on we may need to > > add a boostrap jvm-overlord thingy to handle more simplified/ > automatically cloning, but for now... telling users to cp -r a/ b/ is > > probably easiest with the least amount of wrinkles. > > --jason > > > On Apr 25, 2007, at 7:10 PM, Anita Kulshreshtha wrote: > > > > > --- David Jencks <[EMAIL PROTECTED]> wrote: > > > >> I agree. I don't think normal geronimo startup should involve > >> copying stuff from one location to another to set up a new server > >> location. > > This is needed because we need to keep a pristine copy of 'var' > > directory to create additional instances of geronimo. A user should > be > > able to use the installed image _any_ time to create additional > > instances. In other words we need two copies of 'var' directory, > > one to > > create additional instance and one to start the 'base server'. We > > could > > either create var and geronimo/var at build time or copy 'var' to > > geronimo/var when the image is used to start geronimo very _first_ > > time. > > > > Thanks > > Anita > > > > > > > > We could build some kind of admin server to manage setting > >> > >> up/removing server "clones" but I don't think it should be part of > >> the base server normal startup path. If I've misunderstood what > you > >> > >> are proposing please complain :-) > >> > >> thanks > >> david jencks > >> > >> On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: > >> > > > >>> > >>> --jason > >>> > >>> > >>> On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: > >>> > On a closer inspection this alternative (2) does not look so > attractive. IIUC, The classes to determine the geronimo install > directory and directory copy are available in system module. > Either we > duplicate the code in kernel or wait till later (after booting > kernel, > loading bootstrap configuration..) to fail if the instance data > is > >> > not > found. > Yet another alternative (3) is to modify the build and create > a > geronimo/var and make 'var' read only. > > Thanks > Anita > > --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: > > > +1 > > > > I think the platform scripts should be as thin as possible > > > > -dain > > > > On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: > > > .. > and then just die > > > >> quickly if the directory is missing with an informative error > >> message to that effect. > >> > >> --jason > >> > >> > >> On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: > >> > >>> The other option is to update MainConfigurationBootstrapper > >> as > >>> follows: > >>> 1. if geronimo.org.apache.geronimo.server.name system > property > >> is > > not > >>> set, set it to 'geronimo'. > >>> 2. If 'geronimo' dir does not exist, create one and copy > 'var' > >> to > > it. > >>> 3. do the rest... > >>> > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > >>> > >> > >> > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
What about creating a jar/zip of the var directory when the assembly is created, so you always have a pristine copy and could easily use a script to unjar/unzip it into a new directory via the user's JVM? -Donald Anita Kulshreshtha wrote: --- David Jencks <[EMAIL PROTECTED]> wrote: I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. This is needed because we need to keep a pristine copy of 'var' directory to create additional instances of geronimo. A user should be able to use the installed image _any_ time to create additional instances. In other words we need two copies of 'var' directory, one to create additional instance and one to start the 'base server'. We could either create var and geronimo/var at build time or copy 'var' to geronimo/var when the image is used to start geronimo very _first_ time. Thanks Anita We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Help needed with geronimo.sh
Just make it a manual step for now... as time goes on we may need to add a boostrap jvm-overlord thingy to handle more simplified/ automatically cloning, but for now... telling users to cp -r a/ b/ is probably easiest with the least amount of wrinkles. --jason On Apr 25, 2007, at 7:10 PM, Anita Kulshreshtha wrote: --- David Jencks <[EMAIL PROTECTED]> wrote: I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. This is needed because we need to keep a pristine copy of 'var' directory to create additional instances of geronimo. A user should be able to use the installed image _any_ time to create additional instances. In other words we need two copies of 'var' directory, one to create additional instance and one to start the 'base server'. We could either create var and geronimo/var at build time or copy 'var' to geronimo/var when the image is used to start geronimo very _first_ time. Thanks Anita We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
--- David Jencks <[EMAIL PROTECTED]> wrote: > I agree. I don't think normal geronimo startup should involve > copying stuff from one location to another to set up a new server > location. This is needed because we need to keep a pristine copy of 'var' directory to create additional instances of geronimo. A user should be able to use the installed image _any_ time to create additional instances. In other words we need two copies of 'var' directory, one to create additional instance and one to start the 'base server'. We could either create var and geronimo/var at build time or copy 'var' to geronimo/var when the image is used to start geronimo very _first_ time. Thanks Anita We could build some kind of admin server to manage setting > > up/removing server "clones" but I don't think it should be part of > the base server normal startup path. If I've misunderstood what you > > are proposing please complain :-) > > thanks > david jencks > > On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: > > > > > --jason > > > > > > On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: > > > >>On a closer inspection this alternative (2) does not look so > >> attractive. IIUC, The classes to determine the geronimo install > >> directory and directory copy are available in system module. > >> Either we > >> duplicate the code in kernel or wait till later (after booting > >> kernel, > >> loading bootstrap configuration..) to fail if the instance data is > > >> not > >> found. > >>Yet another alternative (3) is to modify the build and create a > >> geronimo/var and make 'var' read only. > >> > >> Thanks > >> Anita > >> > >> --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: > >> > >>> +1 > >>> > >>> I think the platform scripts should be as thin as possible > >>> > >>> -dain > >>> > >>> On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: > >>> > >> .. > >> and then just die > >>> > quickly if the directory is missing with an informative error > message to that effect. > > --jason > > > On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: > > > The other option is to update MainConfigurationBootstrapper > as > > follows: > > 1. if geronimo.org.apache.geronimo.server.name system property > is > >>> not > > set, set it to 'geronimo'. > > 2. If 'geronimo' dir does not exist, create one and copy 'var' > to > >>> it. > > 3. do the rest... > > > >> > >> > >> __ > >> Do You Yahoo!? > >> Tired of spam? Yahoo! Mail has the best spam protection around > >> http://mail.yahoo.com > > > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
Admin server or boot strap shell might not be a bad idea. Since G needs so many flags to set endorsed + ext dirs muck now, it might be a good idea to introduce a tiny shell which can handle invoking the server correctly. Maybe something to think about for 2.1... --jason On Apr 25, 2007, at 12:08 PM, David Jencks wrote: I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: Just make users copy the directory and be done with it. --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
I agree. I don't think normal geronimo startup should involve copying stuff from one location to another to set up a new server location. We could build some kind of admin server to manage setting up/removing server "clones" but I don't think it should be part of the base server normal startup path. If I've misunderstood what you are proposing please complain :-) thanks david jencks On Apr 25, 2007, at 11:55 AM, Jason Dillon wrote: Just make users copy the directory and be done with it. --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
Just make users copy the directory and be done with it. --jason On Apr 25, 2007, at 4:58 AM, Anita Kulshreshtha wrote: On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: +1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: .. and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
On a closer inspection this alternative (2) does not look so attractive. IIUC, The classes to determine the geronimo install directory and directory copy are available in system module. Either we duplicate the code in kernel or wait till later (after booting kernel, loading bootstrap configuration..) to fail if the instance data is not found. Yet another alternative (3) is to modify the build and create a geronimo/var and make 'var' read only. Thanks Anita --- Dain Sundstrom <[EMAIL PROTECTED]> wrote: > +1 > > I think the platform scripts should be as thin as possible > > -dain > > On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: > .. and then just die > > > quickly if the directory is missing with an informative error > > message to that effect. > > > > --jason > > > > > > On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: > > > >> The other option is to update MainConfigurationBootstrapper as > >> follows: > >> 1. if geronimo.org.apache.geronimo.server.name system property is > not > >> set, set it to 'geronimo'. > >> 2. If 'geronimo' dir does not exist, create one and copy 'var' to > it. > >> 3. do the rest... > >> __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
+1 I think the platform scripts should be as thin as possible -dain On Apr 24, 2007, at 12:38 PM, Jason Dillon wrote: Well, that sounds better than putting that muck into platform scripts. Though, why not simplify this even more and force users to make the correct directories with the right configuration, and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... Thanks Anita --- Jason Dillon <[EMAIL PROTECTED]> wrote: Why is it making geronimo/var? Its usually much better to let Java handle making directories and other complicated tasks and keep platform scripts as simple as possible. --jason On Apr 24, 2007, at 4:51 AM, Anita Kulshreshtha wrote: Could someone please help me with testing a unix version of modified geronimo.bat? The patch for geronimo.bat is attached to http://issues.apache.org/jira/browse/GERONIMO-3011#action_12491001 The new geronimo.sh should create a geronimo/var and run geronimo from it when bin\startup is used. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
Well, that sounds better than putting that muck into platform scripts. Though, why not simplify this even more and force users to make the correct directories with the right configuration, and then just die quickly if the directory is missing with an informative error message to that effect. --jason On Apr 24, 2007, at 12:32 PM, Anita Kulshreshtha wrote: The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... Thanks Anita --- Jason Dillon <[EMAIL PROTECTED]> wrote: Why is it making geronimo/var? Its usually much better to let Java handle making directories and other complicated tasks and keep platform scripts as simple as possible. --jason On Apr 24, 2007, at 4:51 AM, Anita Kulshreshtha wrote: Could someone please help me with testing a unix version of modified geronimo.bat? The patch for geronimo.bat is attached to http://issues.apache.org/jira/browse/GERONIMO-3011#action_12491001 The new geronimo.sh should create a geronimo/var and run geronimo from it when bin\startup is used. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
The other option is to update MainConfigurationBootstrapper as follows: 1. if geronimo.org.apache.geronimo.server.name system property is not set, set it to 'geronimo'. 2. If 'geronimo' dir does not exist, create one and copy 'var' to it. 3. do the rest... Thanks Anita --- Jason Dillon <[EMAIL PROTECTED]> wrote: > Why is it making geronimo/var? Its usually much better to let Java > handle making directories and other complicated tasks and keep > platform scripts as simple as possible. > > --jason > > > On Apr 24, 2007, at 4:51 AM, Anita Kulshreshtha wrote: > > >Could someone please help me with testing a unix version of > > modified > > geronimo.bat? The patch for geronimo.bat is attached to > > http://issues.apache.org/jira/browse/GERONIMO-3011#action_12491001 > >The new geronimo.sh should create a geronimo/var and run > geronimo > > from it when bin\startup is used. > > > > Thanks > > Anita > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help needed with geronimo.sh
Why is it making geronimo/var? Its usually much better to let Java handle making directories and other complicated tasks and keep platform scripts as simple as possible. --jason On Apr 24, 2007, at 4:51 AM, Anita Kulshreshtha wrote: Could someone please help me with testing a unix version of modified geronimo.bat? The patch for geronimo.bat is attached to http://issues.apache.org/jira/browse/GERONIMO-3011#action_12491001 The new geronimo.sh should create a geronimo/var and run geronimo from it when bin\startup is used. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
