You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by LiuYan 刘研 <lo...@21cn.com> on 2009/12/30 03:41:34 UTC

Feature request: startup.bat: -title option needed

When running muitiple tomcat instances in same windows OS, the title of all
tomcat/DOS window are all "Tomcat", it's a little hard to distinguish which
window is which tomcat.

for example:
bin\startup.bat -title "Tomcat Server 1 - XXX"
bin\startup.bat -title "Tomcat Server 2 - YYY"
bin\startup.bat -title "Tomcat Server 3 - ZZZ"
...

Then I can distinguish these servers from the title of tomcat/DOS window in
task bar.

Thanks!
-- 
View this message in context: http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Feature request: startup.bat: -title option needed

Posted by LiuYan 刘研 <lo...@21cn.com>.
It's for "one installation, multi instances" situation, these tomcat
instances share the same catalina.bat file, so I use an environment variable
instead of a fixed value. :)


maven apache wrote:
> 
> 2009/12/30 LiuYan 刘研 <lo...@21cn.com>
> 
>>
>> Hi maven:
>>  Thanks for your response.
>>
>>  "How to run multiple tomcat instances" is not what I concerned. I setup
>> three Tomcat 5.0.x instances & one Tomcat 6.0.x in one windows OS in our
>> production environment for some weired reasons. And I can running
>> multiple
>> tomcat instances from one tomcat installation copy by tweaking
>> CATALINA_BASE
>> environment variable before startup.bat (learning tomcat clustering these
>> days).
>>
>>  I just want to distinguish these tomcat servers from title of tomcat
>> window. Currently I modified catalina.bat, changed
>> set _EXECJAVA=start "Tomcat" %_RUNJAVA%
>> to
>> set _EXECJAVA=start "%TOMCAT_TITLE%" %_RUNJAVA%
>>
> Why not set the title directly by [set _EXECJAVA=start "Tomcat Server1"
> %_RUNJAVA%]?
> 
>>
>> and execute
>> set TOMCAT_TITLE=Server1/Server2/Server3/...
>> before running startup.bat, it's a trick, but it is not an official
>> solution, and it's not suitable for creating a windows shortcut (pass
>> TITLE
>> via command line option)
>>
>>
>>
>> maven apache wrote:
>> >
>> > 2009/12/30 LiuYan 刘研 <lo...@21cn.com>
>> >
>> >>
>> >> When running muitiple tomcat instances in same windows OS, the title
>> of
>> >> all
>> >> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish
>> >> which
>> >> window is which tomcat.
>> >>
>> > Not exactly sure what you are meaning. Did you mean that you have
>> > installed
>> > more than one tomcat or you just installed one tomcat but you want to
>> > start
>> > more than one tomcat instances?
>> >
>> >>
>> >> for example:
>> >> bin\startup.bat -title "Tomcat Server 1 - XXX"
>> >> bin\startup.bat -title "Tomcat Server 2 - YYY"
>> >> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
>> >> ...
>> >>
>> >> Then I can distinguish these servers from the title of tomcat/DOS
>> window
>> >> in
>> >> task bar.
>> >>
>> >> Thanks!
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
>> >> Sent from the Tomcat - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963650.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26964134.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Feature request: startup.bat: -title option needed

Posted by maven apache <ap...@gmail.com>.
2009/12/30 LiuYan 刘研 <lo...@21cn.com>

>
> Hi maven:
>  Thanks for your response.
>
>  "How to run multiple tomcat instances" is not what I concerned. I setup
> three Tomcat 5.0.x instances & one Tomcat 6.0.x in one windows OS in our
> production environment for some weired reasons. And I can running multiple
> tomcat instances from one tomcat installation copy by tweaking
> CATALINA_BASE
> environment variable before startup.bat (learning tomcat clustering these
> days).
>
>  I just want to distinguish these tomcat servers from title of tomcat
> window. Currently I modified catalina.bat, changed
> set _EXECJAVA=start "Tomcat" %_RUNJAVA%
> to
> set _EXECJAVA=start "%TOMCAT_TITLE%" %_RUNJAVA%
>
Why not set the title directly by [set _EXECJAVA=start "Tomcat Server1"
%_RUNJAVA%]?

>
> and execute
> set TOMCAT_TITLE=Server1/Server2/Server3/...
> before running startup.bat, it's a trick, but it is not an official
> solution, and it's not suitable for creating a windows shortcut (pass TITLE
> via command line option)
>
>
>
> maven apache wrote:
> >
> > 2009/12/30 LiuYan 刘研 <lo...@21cn.com>
> >
> >>
> >> When running muitiple tomcat instances in same windows OS, the title of
> >> all
> >> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish
> >> which
> >> window is which tomcat.
> >>
> > Not exactly sure what you are meaning. Did you mean that you have
> > installed
> > more than one tomcat or you just installed one tomcat but you want to
> > start
> > more than one tomcat instances?
> >
> >>
> >> for example:
> >> bin\startup.bat -title "Tomcat Server 1 - XXX"
> >> bin\startup.bat -title "Tomcat Server 2 - YYY"
> >> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
> >> ...
> >>
> >> Then I can distinguish these servers from the title of tomcat/DOS window
> >> in
> >> task bar.
> >>
> >> Thanks!
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
> >> Sent from the Tomcat - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963650.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Feature request: startup.bat: -title option needed

Posted by maven apache <ap...@gmail.com>.
2009/12/30 LiuYan 刘研 <lo...@21cn.com>

>
> Hi maven:
>  Thanks for your response.
>
>  "How to run multiple tomcat instances" is not what I concerned. I setup
> three Tomcat 5.0.x instances & one Tomcat 6.0.x in one windows OS in our
> production environment for some weired reasons. And I can running multiple
> tomcat instances from one tomcat installation copy by tweaking
> CATALINA_BASE
> environment variable before startup.bat (learning tomcat clustering these
> days).
>
>  I just want to distinguish these tomcat servers from title of tomcat
> window. Currently I modified catalina.bat, changed
> set _EXECJAVA=start "Tomcat" %_RUNJAVA%
> to
> set _EXECJAVA=start "%TOMCAT_TITLE%" %_RUNJAVA%
>
Why not set the title directly by using [set _EXECJAVA=start "Tomcat
Server1" %_RUNJAVA%] ?

>
> and execute
> set TOMCAT_TITLE=Server1/Server2/Server3/...
> before running startup.bat, it's a trick, but it is not an official
> solution, and it's not suitable for creating a windows shortcut (pass TITLE
> via command line option)
>
>
>
> maven apache wrote:
> >
> > 2009/12/30 LiuYan 刘研 <lo...@21cn.com>
> >
> >>
> >> When running muitiple tomcat instances in same windows OS, the title of
> >> all
> >> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish
> >> which
> >> window is which tomcat.
> >>
> > Not exactly sure what you are meaning. Did you mean that you have
> > installed
> > more than one tomcat or you just installed one tomcat but you want to
> > start
> > more than one tomcat instances?
> >
> >>
> >> for example:
> >> bin\startup.bat -title "Tomcat Server 1 - XXX"
> >> bin\startup.bat -title "Tomcat Server 2 - YYY"
> >> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
> >> ...
> >>
> >> Then I can distinguish these servers from the title of tomcat/DOS window
> >> in
> >> task bar.
> >>
> >> Thanks!
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
> >> Sent from the Tomcat - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963650.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Feature request: startup.bat: -title option needed

Posted by LiuYan 刘研 <lo...@21cn.com>.
Hi maven:
  Thanks for your response.

  "How to run multiple tomcat instances" is not what I concerned. I setup
three Tomcat 5.0.x instances & one Tomcat 6.0.x in one windows OS in our
production environment for some weired reasons. And I can running multiple
tomcat instances from one tomcat installation copy by tweaking CATALINA_BASE
environment variable before startup.bat (learning tomcat clustering these
days).

  I just want to distinguish these tomcat servers from title of tomcat
window. Currently I modified catalina.bat, changed
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
to
set _EXECJAVA=start "%TOMCAT_TITLE%" %_RUNJAVA%

and execute
set TOMCAT_TITLE=Server1/Server2/Server3/...
before running startup.bat, it's a trick, but it is not an official
solution, and it's not suitable for creating a windows shortcut (pass TITLE
via command line option)



maven apache wrote:
> 
> 2009/12/30 LiuYan 刘研 <lo...@21cn.com>
> 
>>
>> When running muitiple tomcat instances in same windows OS, the title of
>> all
>> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish
>> which
>> window is which tomcat.
>>
> Not exactly sure what you are meaning. Did you mean that you have
> installed
> more than one tomcat or you just installed one tomcat but you want to
> start
> more than one tomcat instances?
> 
>>
>> for example:
>> bin\startup.bat -title "Tomcat Server 1 - XXX"
>> bin\startup.bat -title "Tomcat Server 2 - YYY"
>> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
>> ...
>>
>> Then I can distinguish these servers from the title of tomcat/DOS window
>> in
>> task bar.
>>
>> Thanks!
>> --
>> View this message in context:
>> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963650.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Feature request: startup.bat: -title option needed

Posted by maven apache <ap...@gmail.com>.
2009/12/30 LiuYan 刘研 <lo...@21cn.com>

>
> When running muitiple tomcat instances in same windows OS, the title of all
> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish which
> window is which tomcat.
>
Not exactly sure what you are meaning. Did you mean that you have installed
more than one tomcat or you just installed one tomcat but you want to start
more than one tomcat instances?

>
> for example:
> bin\startup.bat -title "Tomcat Server 1 - XXX"
> bin\startup.bat -title "Tomcat Server 2 - YYY"
> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
> ...
>
> Then I can distinguish these servers from the title of tomcat/DOS window in
> task bar.
>
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26963401.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Feature request: startup.bat: -title option needed

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

LiuYan 刘研,

On 12/30/2009 9:17 AM, LiuYan 刘研 wrote:
> Ok, I've post it to bugzilla:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48464
> A patch is also attached, wish it can be accepted.

Yay! The system works.

Thank you for your contribution to Tomcat.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktADwMACgkQ9CaO5/Lv0PAtwQCgrJS92uR3AFmhvSKIWOiYmhW+
xFgAoKA79++w4k6rBPqsLN56U95sQQ/4
=lD0n
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Feature request: startup.bat: -title option needed

Posted by LiuYan 刘研 <lo...@21cn.com>.
Ok, I've post it to bugzilla:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48464
A patch is also attached, wish it can be accepted.

Here's a screenshot of the usage(uploaded on nabble.com):
http://old.nabble.com/file/p26967935/startup.bat%2B-title%2BTITLE%2Boption%2Bsample.png 


markt-2 wrote:
> 
> On 30/12/2009 02:41, LiuYan 刘研 wrote:
>> 
>> When running muitiple tomcat instances in same windows OS, the title of
>> all
>> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish
>> which
>> window is which tomcat.
>> 
>> for example:
>> bin\startup.bat -title "Tomcat Server 1 - XXX"
>> bin\startup.bat -title "Tomcat Server 2 - YYY"
>> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
>> ...
>> 
>> Then I can distinguish these servers from the title of tomcat/DOS window
>> in
>> task bar.
>> 
>> Thanks!
> 
> Seems reasonable to me.
> 
> Feature requests are best recorded as enhancements in Bugzilla otherwise
> they tend to get forgotten about.
> 
> Feature requests with patches tend to get looked at sooner.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Feature-request%3A-startup.bat%3A--title-option-needed-tp26963401p26967935.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Feature request: startup.bat: -title option needed

Posted by Mark Thomas <ma...@apache.org>.
On 30/12/2009 02:41, LiuYan 刘研 wrote:
> 
> When running muitiple tomcat instances in same windows OS, the title of all
> tomcat/DOS window are all "Tomcat", it's a little hard to distinguish which
> window is which tomcat.
> 
> for example:
> bin\startup.bat -title "Tomcat Server 1 - XXX"
> bin\startup.bat -title "Tomcat Server 2 - YYY"
> bin\startup.bat -title "Tomcat Server 3 - ZZZ"
> ...
> 
> Then I can distinguish these servers from the title of tomcat/DOS window in
> task bar.
> 
> Thanks!

Seems reasonable to me.

Feature requests are best recorded as enhancements in Bugzilla otherwise
they tend to get forgotten about.

Feature requests with patches tend to get looked at sooner.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org