Re: Running multiple instances of geronimo
I think this is a small mistake on page http://cwiki.apache.org/confluence/display/GMOxDOC20/Multiple+Repositories. For the following line: Use org.apache.geronimo.server.name to specify an absolute path, which need not be relative to geronimo_home. For example, /ag20/servers/bar would put the server's var directory under /ag20/servers/bar. Otherwise, the two system properties behave the same. The org.apache.geronimo.server.name should be org.apache.geronimo.server.dir. Thanks YunFeng Ma On 2007-04-25 22:46:16, Hernan Cunico [EMAIL PROTECTED] wrote: So, here they are ! http://cwiki.apache.org/GMOxDOC20/running-geronimo.html Thanks Anita and Ted for these docs Cheers! Hernan Ted Kirby wrote: I like the idea of guidance and recommendations for Running Geronimo. Multiple instances, repositories, read-only vs. read-write file systems and finally permissions with userids and groups seem the set of issues to be addressed, and I like the idea of doing in comprehensively. +1 On 4/24/07, Hernan Cunico [EMAIL PROTECTED] wrote: yup, makes sense to me. We can also add there running G as a service, etc. Pls go ahead and create that page, the content will look more organized. Cheers! Hernan Anita Kulshreshtha wrote: --- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/
Re: Running multiple instances of geronimo
Wiki can be edited by any registered user... Please feel free to edit this and - http://cwiki.apache.org/confluence/display/GMOxDOC20/Running+Multiple+Instances+of+Geronimo Thanks Anita --- FranK G [EMAIL PROTECTED] wrote: I think this is a small mistake on page http://cwiki.apache.org/confluence/display/GMOxDOC20/Multiple+Repositories. For the following line: Use org.apache.geronimo.server.name to specify an absolute path, which need not be relative to geronimo_home. For example, /ag20/servers/bar would put the server's var directory under /ag20/servers/bar. Otherwise, the two system properties behave the same. The org.apache.geronimo.server.name should be org.apache.geronimo.server.dir. Thanks YunFeng Ma On 2007-04-25 22:46:16, Hernan Cunico [EMAIL PROTECTED] wrote: So, here they are ! http://cwiki.apache.org/GMOxDOC20/running-geronimo.html Thanks Anita and Ted for these docs Cheers! Hernan Ted Kirby wrote: I like the idea of guidance and recommendations for Running Geronimo. Multiple instances, repositories, read-only vs. read-write file systems and finally permissions with userids and groups seem the set of issues to be addressed, and I like the idea of doing in comprehensively. +1 On 4/24/07, Hernan Cunico [EMAIL PROTECTED] wrote: yup, makes sense to me. We can also add there running G as a service, etc. Pls go ahead and create that page, the content will look more organized. Cheers! Hernan Anita Kulshreshtha wrote: --- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/
Re: Running multiple instances of geronimo
So, here they are ! http://cwiki.apache.org/GMOxDOC20/running-geronimo.html Thanks Anita and Ted for these docs Cheers! Hernan Ted Kirby wrote: I like the idea of guidance and recommendations for Running Geronimo. Multiple instances, repositories, read-only vs. read-write file systems and finally permissions with userids and groups seem the set of issues to be addressed, and I like the idea of doing in comprehensively. +1 On 4/24/07, Hernan Cunico [EMAIL PROTECTED] wrote: yup, makes sense to me. We can also add there running G as a service, etc. Pls go ahead and create that page, the content will look more organized. Cheers! Hernan Anita Kulshreshtha wrote: --- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
--- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
yup, makes sense to me. We can also add there running G as a service, etc. Pls go ahead and create that page, the content will look more organized. Cheers! Hernan Anita Kulshreshtha wrote: --- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
I like the idea of guidance and recommendations for Running Geronimo. Multiple instances, repositories, read-only vs. read-write file systems and finally permissions with userids and groups seem the set of issues to be addressed, and I like the idea of doing in comprehensively. +1 On 4/24/07, Hernan Cunico [EMAIL PROTECTED] wrote: yup, makes sense to me. We can also add there running G as a service, etc. Pls go ahead and create that page, the content will look more organized. Cheers! Hernan Anita Kulshreshtha wrote: --- Ted Kirby [EMAIL PROTECTED] wrote: Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html I am thinking about creating a new page titled 'Running Geronimo'. It could contain the existing 2 pages [1] and [3]: 1. http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 2. Running multiple instances of geronimo 3. http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html WDYT? Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
Now the server instances can be run as follows: 1. create a directory in GERONIMO_HOME called say 'instance1' 2. copy 'var' directory to instance1. 3. edit instance1\var\config\config-substitutions.properties. Change portOffset to 10, 20, .. (or anything else). 3. set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=instance1 4. bin\startup 5. To shutdown use bin\shutdown for the instance using 1099, and bin\shutdown --port=rmiNamingPort for others. The console can also be used. 6. To deploy from command line use: bin\deploy . for instance at 1099 bin\deploy -port rmiNamingPort deploy . for others It would be nice if shutdown and deploy used same command syntax. For the sake of uniformity, I would like to treat the server with name geronimo', i.e. gernimo:...j2eeType=J2EEServer,name=geronimo as an instance. In other words it will be run from geronimo/var (not var). This will make a pristine copy of 'var' available all the time for creating new instances. This can be easily done by setting the property org.apache.geronimo.server.name=geronimo by default. Any other ideas are welcome.. Thanks Anita --- Anita Kulshreshtha [EMAIL PROTECTED] wrote: Hi All, We need to make some additional [1] changes to the server to run multiple instances of geronimo: 1. By default i.e. bin\startup will start the server with a name (i1 or something). 2.A pristine copy of var and deploy (empty directory) will be maintained at G_HOME, which could be used to start new instances. The G_HOME/deploy is not necessary in this case. The server directory will look like this: GERONIMO_HOME - |- ... | deploy - ?? |- var |- instance1 - var |- deploy |- instance2 - var |- deploy |- .. [1] http://issues.apache.org/jira/browse/GERONIMO-3011 The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
Anita, keep up the good work! :) I appreciate your efforts and documentation. Please feel free to document the evolving steps and issues in the wiki here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html Ted Kirby On 4/20/07, Anita Kulshreshtha [EMAIL PROTECTED] wrote: Now the server instances can be run as follows: 1. create a directory in GERONIMO_HOME called say 'instance1' 2. copy 'var' directory to instance1. 3. edit instance1\var\config\config-substitutions.properties. Change portOffset to 10, 20, .. (or anything else). 3. set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=instance1 4. bin\startup 5. To shutdown use bin\shutdown for the instance using 1099, and bin\shutdown --port=rmiNamingPort for others. The console can also be used. 6. To deploy from command line use: bin\deploy . for instance at 1099 bin\deploy -port rmiNamingPort deploy . for others It would be nice if shutdown and deploy used same command syntax. For the sake of uniformity, I would like to treat the server with name geronimo', i.e. gernimo:...j2eeType=J2EEServer,name=geronimo as an instance. In other words it will be run from geronimo/var (not var). This will make a pristine copy of 'var' available all the time for creating new instances. This can be easily done by setting the property org.apache.geronimo.server.name=geronimo by default. I like the notion of a pristine var to allow for easy instance creation. When you say by default, are you suggesting that we ship AG this way? If this is done, then we must have geronimo and geronimo/var directories in the shipped image. I see those are small. Its the var/activemq/journals that are large (40MB), but they get created after the instance is started. Any other ideas are welcome.. Thanks Anita --- Anita Kulshreshtha [EMAIL PROTECTED] wrote: Hi All, We need to make some additional [1] changes to the server to run multiple instances of geronimo: 1. By default i.e. bin\startup will start the server with a name (i1 or something). 2.A pristine copy of var and deploy (empty directory) will be maintained at G_HOME, which could be used to start new instances. The G_HOME/deploy is not necessary in this case. The server directory will look like this: GERONIMO_HOME - |- ... | deploy - ?? |- var |- instance1 - var |- deploy |- instance2 - var |- deploy |- .. [1] http://issues.apache.org/jira/browse/GERONIMO-3011 The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
--- Ted Kirby [EMAIL PROTECTED] wrote: I like the notion of a pristine var to allow for easy instance creation. When you say by default, are you suggesting that we ship AG this way? If this is done, then we must have geronimo and geronimo/var directories in the shipped image. I see those are small. Initially yes, have a var and a geronimo/var (53K). Later we could have some code to do the copying. So given a server name this code will create name/var (53K). This code could be part of J2EEDomain managedobject: addServer(String serverName); removeServer(String ServerName); We could make J2EEserver statemanageable, i.e. provide doStart() and doStop() to start the instances. Some more thought is needed on how to tie all this together... Its the var/activemq/journals that are large (40MB), but they get created after the instance is started. yup, this will created when the instance is started. Thanks Anita __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Running multiple instances of geronimo
This morning things seem to be working fine!!! i.e. jline.dll is extracted to var\temp and shutdown works. If the bizarre thing like jline.dll in i1/var/temp happens again, I will get back to you.. Thanks for responding. Thanks Anita --- Jason Dillon [EMAIL PROTECTED] wrote: The extraction is handled automatically by the JLine library at runtime and will extract to wherever java.io.tmpdir is set to for the invoking JVM. What is the issue? I don't understand what the problem is you are trying to solve related to the jline.dll. You should not have to do anything at all related to this file. --jason On Apr 9, 2007, at 3:34 PM, Anita Kulshreshtha wrote: Thanks Jason! The jline.dll was extracted to i1/var/temp and i2/var/temp for instances named i1 and i2. But the shutdown config expects it in var/temp. If the default server, i.e. the one using 'var' is not started, the jline.dll is not extracted to var/temp. Could we extract it to var/temp even without starting the default server? When is the extraction done? Thanks Anita --- Jason Dillon [EMAIL PROTECTED] wrote: On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote: 3. The shutdown config is using var/temp/jline.dll. We should be able to use a single copy of jline.dll. Where should jline.dll be put? jline.dll is dynamically extracted from the jline-*.jar and it will put it into whatever is used for java.io.tmpdir for the executing JVM. So you shouldn't need to worry about where its put. --jason __ __ TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
Re: Running multiple instances of geronimo
On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote: 3. The shutdown config is using var/temp/jline.dll. We should be able to use a single copy of jline.dll. Where should jline.dll be put? jline.dll is dynamically extracted from the jline-*.jar and it will put it into whatever is used for java.io.tmpdir for the executing JVM. So you shouldn't need to worry about where its put. --jason
Re: Running multiple instances of geronimo
Thanks Jason! The jline.dll was extracted to i1/var/temp and i2/var/temp for instances named i1 and i2. But the shutdown config expects it in var/temp. If the default server, i.e. the one using 'var' is not started, the jline.dll is not extracted to var/temp. Could we extract it to var/temp even without starting the default server? When is the extraction done? Thanks Anita --- Jason Dillon [EMAIL PROTECTED] wrote: On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote: 3. The shutdown config is using var/temp/jline.dll. We should be able to use a single copy of jline.dll. Where should jline.dll be put? jline.dll is dynamically extracted from the jline-*.jar and it will put it into whatever is used for java.io.tmpdir for the executing JVM. So you shouldn't need to worry about where its put. --jason TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/
Re: Running multiple instances of geronimo
The extraction is handled automatically by the JLine library at runtime and will extract to wherever java.io.tmpdir is set to for the invoking JVM. What is the issue? I don't understand what the problem is you are trying to solve related to the jline.dll. You should not have to do anything at all related to this file. --jason On Apr 9, 2007, at 3:34 PM, Anita Kulshreshtha wrote: Thanks Jason! The jline.dll was extracted to i1/var/temp and i2/var/temp for instances named i1 and i2. But the shutdown config expects it in var/temp. If the default server, i.e. the one using 'var' is not started, the jline.dll is not extracted to var/temp. Could we extract it to var/temp even without starting the default server? When is the extraction done? Thanks Anita --- Jason Dillon [EMAIL PROTECTED] wrote: On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote: 3. The shutdown config is using var/temp/jline.dll. We should be able to use a single copy of jline.dll. Where should jline.dll be put? jline.dll is dynamically extracted from the jline-*.jar and it will put it into whatever is used for java.io.tmpdir for the executing JVM. So you shouldn't need to worry about where its put. --jason __ __ TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/