On 08.11.2010 15:27, Mark Thomas wrote:
Yep - that looks like a left-over from when I was playing with int
rather than String for version. I'm still in two minds about that bit.
There are places internally where using String makes it easier but
limiting it to int would allow us to avoid a bunch of issues.

If we limit to int we would need to either reject any webapp with invalid version or give it an automatic version and log a fat message about that. That's a bit problematic. Human beings typically like to think about application versions in terms of some hierarchical structured number, possibly composed with textual suffixes.

So why not making a compromise, like allowing everything apart from the already used dot in a webapp version, so the session id would be

session id = tradition hex id "-" webapp version "." jvmRoute

Furthermore we could as a convenience convert all dots to underscores and log a fat warning about that. As a result, we would know, that everything behind the first dot is the jvmRoute, and everything before but after the first dash is the webapp version.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to