You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by André Warnier <aw...@ice-sa.com> on 2009/04/06 10:10:05 UTC

Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Caldarale, Charles R wrote:
[...]
> 
> The metaphysical implications of existing without a trace are rather intriguing...
> 
I am surprised that you would not have heard of stealth technology.
What do they call a stealthy Tomcat ? a Raptor ?

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


RE: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded
> 
> I am surprised that you would not have heard of stealth technology.
> What do they call a stealthy Tomcat ? a Raptor ?

I think it will be the Lightning II; the US Navy passed on the Raptor (puts on a good show at Oshkosh, though).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Posted by János Löbb <ja...@yale.edu>.
On Apr 7, 2009, at 7:57 AM, André Warnier wrote:

> János Löbb wrote:
>> On Apr 6, 2009, at 4:10 AM, André Warnier wrote:
>>> Caldarale, Charles R wrote:
>>> [...]
>>>> The metaphysical implications of existing without a trace are  
>>>> rather intriguing...
>>> I am surprised that you would not have heard of stealth technology.
>>> What do they call a stealthy Tomcat ? a Raptor ?
>> No.... that must be a Schrödingercat :)
> I am sorry, but I will have to disagree.
> A Schrödinger Tomcat would be one that exists multiple times, in  
> quantum superposition. Which would probably create problems with all  
> of them trying to listen on the same TCP ports. Unless of course the  
> listening port only gets instantiated at the first interaction with  
> one of the Tomcats.
OK. :)  How about BatCat ?  It is stealthy, but still can say: "Miaú" :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

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

André,

On 4/7/2009 4:29 PM, André Warnier wrote:
> I would have to disagree again.

Sorry, I should have done the code in a haiku.

> The Tomcat you describe above is totally deterministic : it is alive
> (since it can receive your request), but as soon as you interact with
> it, it dies.

Hmm... you're right. I was thinking that the System.exit() would kill
the process and therefore the connection, but by the time the JVM dies,
the connection has already been made, proving the liveness of the
instance (nb: Mozilla Thunderbird does not consider 'liveness' to be a
correctly-spelled English word).

> Can [the listening port] be for example half-open ?

Perhaps. How about this:

ServerSocket socket = new ServerSocket(8080);
// No subsequent socket.accept() call

> And is a half-open port 8080 equivalent to a fully-open port 4040, or
> does it just have only half the bandwidth ?

Half the bandwidth, I think. "Half" would refer to its openness, not to
its port number, but maybe only half of the data gets through per unit
time. How many gigabits does the average cat hold? (nb: tb does not
consider 'gigabits' to be a correctly-spelled word, though 'gigabytes'
/is/).

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

iEUEARECAAYFAknbufcACgkQ9CaO5/Lv0PANUQCXd3QHBarYGT4YouC4saqc27xM
sgCgjILsEbGDO3+rKWZGx2aUZ7znzPY=
=EpK1
-----END PGP SIGNATURE-----

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


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Posted by André Warnier <aw...@ice-sa.com>.
Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> André,
> 
> On 4/7/2009 7:57 AM, André Warnier wrote:
>> A Schrödinger Tomcat would be one that exists multiple times, in quantum
>> superposition. Which would probably create problems with all of them
>> trying to listen on the same TCP ports. Unless of course the listening
>> port only gets instantiated at the first interaction with one of the
>> Tomcats.
> 
> I would think that a Schrödinger Tomcat would be one configured thusly:
> 
> 1. ROOT context captures all incoming requests and routes them to the
>    CheckForTomcatRunningServlet.
> 2. CheckForTomcatRunningServlet is implemented as follows:
> 
>    public void service(...) {
>      System.exit(0);
>    }
> 
> Tomcat is either up or not. 
I would have to disagree again.
The Tomcat you describe above is totally deterministic : it is alive 
(since it can receive your request), but as soon as you interact with 
it, it dies.
In my view, the Schrödinger Tomcat's existence is never in doubt. There 
are even an infinity of them, each one having some probability of being 
more or less alive or dead. As soon as you interact with it/them 
however, you automatically select one of them.
Thus the code above should at least incorporate the following 
pseudo-code modification :

 >    public void service(...) {
        if (random(1) < 0.5)
 >        System.exit(0);
        else
          response.print(locale("miaou"));
 >    }

The question in fact really boils down to whether these quantums of life 
extend or not to the listening port.  Can it be for example half-open ?
And is a half-open port 8080 equivalent to a fully-open port 4040, or 
does it just have only half the bandwidth ?


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


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

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

André,

On 4/7/2009 7:57 AM, André Warnier wrote:
> A Schrödinger Tomcat would be one that exists multiple times, in quantum
> superposition. Which would probably create problems with all of them
> trying to listen on the same TCP ports. Unless of course the listening
> port only gets instantiated at the first interaction with one of the
> Tomcats.

I would think that a Schrödinger Tomcat would be one configured thusly:

1. ROOT context captures all incoming requests and routes them to the
   CheckForTomcatRunningServlet.
2. CheckForTomcatRunningServlet is implemented as follows:

   public void service(...) {
     System.exit(0);
   }

Tomcat is either up or not. You are outside the "box" (ha ha ha) so you
can only check if it's up by sending an HTTP request to it. Is it running?

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

iEYEARECAAYFAknboY4ACgkQ9CaO5/Lv0PCyiwCfUtPg9APi+7e5vQ7hKZHC1XWx
9/YAniya2ZZgU6Epe0R9spxHBeprz4s9
=QCAD
-----END PGP SIGNATURE-----

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


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Posted by André Warnier <aw...@ice-sa.com>.
János Löbb wrote:
> 
> On Apr 6, 2009, at 4:10 AM, André Warnier wrote:
> 
>> Caldarale, Charles R wrote:
>> [...]
>>> The metaphysical implications of existing without a trace are rather 
>>> intriguing...
>> I am surprised that you would not have heard of stealth technology.
>> What do they call a stealthy Tomcat ? a Raptor ?
> No.... that must be a Schrödingercat :)
I am sorry, but I will have to disagree.
A Schrödinger Tomcat would be one that exists multiple times, in quantum 
superposition. Which would probably create problems with all of them 
trying to listen on the same TCP ports. Unless of course the listening 
port only gets instantiated at the first interaction with one of the 
Tomcats.


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


Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

Posted by János Löbb <ja...@yale.edu>.
On Apr 6, 2009, at 4:10 AM, André Warnier wrote:

> Caldarale, Charles R wrote:
> [...]
>> The metaphysical implications of existing without a trace are  
>> rather intriguing...
> I am surprised that you would not have heard of stealth technology.
> What do they call a stealthy Tomcat ? a Raptor ?
No.... that must be a Schrödingercat :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org