-
1. Re: is undertow a web server? web container? or both
jaikiran Jul 25, 2013 8:50 AM (in response to wujiee) -
2. Re: is undertow a web server? web container? or both
henk53 Jul 27, 2013 4:48 PM (in response to jaikiran)jaikiran pai wrote:
"non-blocking API’s based on NIO"
[grammar nazi] Shouldn't that be "non-blocking APIs based on NIO"?
-
3. Re: is undertow a web server? web container? or both
wujiee Jul 29, 2013 8:34 PM (in response to wujiee)In JBoss Web Server home page:http://www.redhat.com/products/jbossenterprisemiddleware/web-server/
the JBoss Web Server contains Apache Web Server, Connector(mod_proxy), and Tomcat.
and In Java EE 7 spec(JSR 342), the Web Server is defined as following.
So, I think undoertow is equals to tomcat.
-
4. Re: is undertow a web server? web container? or both
nickarls Jul 29, 2013 1:12 AM (in response to henk53)"non-blocking API’s based on NIO"
[grammar nazi] Shouldn't that be "non-blocking APIs based on NIO"?
And it's the implementation that's non-blocking and not the API, right? ;-)
-
5. Re: is undertow a web server? web container? or both
nickarls Jul 29, 2013 1:14 AM (in response to wujiee)Yes, it's essentially the replacement (of JBossWeb which was an extension of Tomcat).
Not that I've considered the difference of a web container and a web server that much before.
-
6. Re: is undertow a web server? web container? or both
jaikiran Jul 29, 2013 4:08 AM (in response to nickarls)Nicklas Karlsson wrote:
Not that I've considered the difference of a web container and a web server that much before.
Neither have I since, IMO, it's reading too much into the words. Each one has their own definition of what a web container is and what a web server is.
-
7. Re: is undertow a web server? web container? or both
jaikiran Jul 29, 2013 4:10 AM (in response to henk53)henk de boer wrote:
jaikiran pai wrote:
"non-blocking API’s based on NIO"
[grammar nazi] Shouldn't that be "non-blocking APIs based on NIO"?
The website source itself is hosted on github https://github.com/undertow-io/undertow-io-site, so please do send pull requests with fixes for such issues.
-
8. Re: is undertow a web server? web container? or both
ctomc Jul 29, 2013 8:34 AM (in response to wujiee)杰 吴 wrote:
In JBoss Web Server home page:http://www.redhat.com/products/jbossenterprisemiddleware/web-server/
the JBoss Web Server contains Apache Web Server, Connector(mod_proxy), and Tomcat.
and In Java EE 7 spec(JSR 342), the Web Server is defined as following.
So, I think undoertow is equals to tomacat.
Undertow is both, web server & servlet container.
As in, you can use just web server without any servlets at all.
so to anwser original question yes it is both and yes it relates to tomcat in a way that replaces jbossweb (fork of tomcat) in WildFly.
--
tomaz
-
9. Re: is undertow a web server? web container? or both
atijms Jul 29, 2013 5:25 PM (in response to ctomc)Tomaz Cerar wrote:
so to anwser original question yes it is both and yes it relates to tomcat in a way that replaces jbossweb (fork of tomcat) in WildFly.
--
tomaz
The first that came to mind when reading that was wondering how you will approach the many Tomcat Valves that are currently in use. JBoss uses them internally too for a lot of things, especially security (see https://community.jboss.org/wiki/WildFlyWebContainerSecurityUseCases).
-
10. Re: is undertow a web server? web container? or both
wujiee Jul 29, 2013 8:56 PM (in response to ctomc)Tomaz Cerar 编写:
杰 吴 wrote:
In JBoss Web Server home page:http://www.redhat.com/products/jbossenterprisemiddleware/web-server/
the JBoss Web Server contains Apache Web Server, Connector(mod_proxy), and Tomcat.
and In Java EE 7 spec(JSR 342), the Web Server is defined as following.
So, I think undoertow is equals to tomcat.
Undertow is both, web server & servlet container.
As in, you can use just web server without any servlets at all.
so to anwser original question yes it is both and yes it relates to tomcat in a way that replaces jbossweb (fork of tomcat) in WildFly.
--
tomaz
Hi Tomaz
Thanks for your clarified reply.
and the further question as following when use undertow as web server.
how to configure the undertow and mod_cluster for http load balancing by wildfly‘s webconsole or cli as the following topology.
#there is no any related infos in wildfly’s docs.
thanks
wujie
-
11. Re: is undertow a web server? web container? or both
jameslivingston Jul 29, 2013 9:39 PM (in response to atijms)arjan tijms wrote:
The first that came to mind when reading that was wondering how you will approach the many Tomcat Valves that are currently in use. JBoss uses them internally too for a lot of things, especially security (see https://community.jboss.org/wiki/WildFlyWebContainerSecurityUseCases).
I've posted about that before on the undertow-dev mailing list (http://lists.jboss.org/pipermail/undertow-dev/2013-April/000286.html). The answer is that it will not be compatible with Tomcat valves directly, since they have access to too much of Tomcat's internals so it. You can however write Undertow Handlers, which allow you to do the same kind of things.
Are there particular use cases and features you were using Valves to do? I did some analysis of what Red Hat sees support cases about and checked whether those things were possible in Undertow, and filed feature requests for those that were not. If there are things which you previously did with Valves that you can't figure out how to do in Undertow, it may be worth posting them here or filing a feature request for.
-
12. Re: is undertow a web server? web container? or both
ctomc Jul 31, 2013 7:24 AM (in response to wujiee)To anwser your question about mod cluster.
Setup should be basicly the same as it was with web subsystem.
Mod cluster added support for undertow recently (i think it was in WildFly 8 alpha3)
All you need to configure is listeners (http / ajp) and it should all work automaticly.
if there are some specific issues, let us know so we can address them.
As it goes for custom valves, let us know what exactly do you need, we are planing some basic valve support just to address common migration scenarios, but as James said, this will not be full blown support as that would require us to have all tomcat's internals present.
As side note, all security releated stuff in WildFly itself has been(or in some cases is in process) rewriten to not use Valves at all...
--
tomaz
-
13. Re: is undertow a web server? web container? or both
henk53 Oct 2, 2013 11:43 AM (in response to ctomc)Tomaz Cerar wrote:
As it goes for custom valves, let us know what exactly do you need
I've seen custom valves being used for modifying each and every cookie that the server adds to the response. A Servlet filter cannot do this, since it cannot intercept things like e.g. the JSESSIONID cookie. Would be great if undertow had some universal support for this.
-
14. Re: is undertow a web server? web container? or both
ctomc Oct 2, 2013 12:01 PM (in response to henk53)I've seen custom valves being used for modifying each and every cookie that the server adds to the response. A Servlet filter cannot do this, since it cannot intercept things like e.g. the JSESSIONID cookie. Would be great if undertow had some universal support for this.
You can do that by writing your own handler, which can be deployed as part of your application if you want.
Take a look at Stuarts answer or similar post on how to do it Re: Authentication in RESTful application
If you mean for us to provide some general set of handlers that you could just configure, that is different story.
We do plan to add support for configuring custom handlers as part of subsystem config.
Undertow itself comes with bunch of handlers that could be configured and used, but there are plenty still missing.
We will eventually address all of them, if you have time you can contribute some
--
tomaz