[Yanel-dev] Upgrading servlet spec...

basZero baszero at gmail.com
Tue Mar 4 17:51:26 CET 2014


Hi,

a great idea.
What I would never do is the break official dependencies of Tomcat.
So if you want to use 3.1 servlet spec, you should go with Tomcat 8 (beta).
If you want to go with 3.0 servlet spec, you should go with tomcat 7.
See: http://tomcat.apache.org/whichversion.html

What concerns backwards compatibility, I only see a solution if the code
gets clearly separated.
I can think of the following approaches:
- Yanel on Tomcat 7 gets created in a new branch (either the current branch
"master" gets forked into a branch called "tomcat6" and the new
tomcat7-version gets commited to master, or you create a new branch called
"tomcat7")
- Maybe it would be better to fully create a new github repository for the
tomcat7 version

This way you can fully program against the new Servlet API (be it 3.1, 3.0
or the current version in Yanel).

You could also say that new features of Yanel only go into the latest
version (e.g. tomcat7 branch).
Customers still being on tomcat6 do not have to pay attention to the switch.

Cheers, Balz


On Tue, Mar 4, 2014 at 11:29 AM, Michael Wechner
<michael.wechner at wyona.com>wrote:

> Hi
>
> I would like to upgrade the servlet spec of Yanel, because Yanel is
> currently using servlet spec 2.3, whereas the most recent version of the
> servlet spec is now 3.1
>
> This would allow us to make use of new interfaces like for example
>
>
> http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#getStatus%28%29
>
> The problem is that I guess many people are using for example older
> Tomcat versions, which do not support the newer servlet spec yet, see
> for example
>
> http://tomcat.apache.org/whichversion.html
>
> Yanel itself includes Tomcat 7.0.25 and we made good experience with it,
> but of course we cannot expect that everyone is using newer Tomcat
> versions.
>
> WDYT?
>
> Michael
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20140304/5526c221/attachment.html>


More information about the Yanel-development mailing list