Ideally as I read from documentations, JBoss AS 5 has in built JBoss Web server substituting the Tomcat. This means now you have JBoss Web Server + JBoss AS that replaces your setup of Apache + JBoss AS. Unfortunately JBoss AS 5 is in beta and I had posted the question to JBoss guys in this same forum whether I could use JBoss AS 4.0.5 + JBoss Web Server. But no replies yet. JBoss 4.0.5 comes with Tomcat and we have to front it with Apache to serve static contents.
I hope this gives you some idea though it may not be the exact answer to your question.
JBoss AS 5 integrates JBoss Web server. And JBoss Web server is powered by Apache Tomcat. That means you could use JBoss AS to serve static contents directly. But you cannot use the native mod_xxx Apache httpd modules in JBoss AS 5.
JBoss Web Server offers you a mod_rewrite valves, a php5servlet for php5 applications, cgi servlet etc...
Thanks for the responses.
mod_rewrite can only provide a randomized load-balancing strategy (using the RewriteMap configuration directive) with no server affinity or failover capabilities.
I was not asking about using mod_xxx plugins in JBoss AS 5, I was asking about using them in JBoss Web Server running standalone (which I now understand that you can't do).
It seems that JBoss Web Server will be a great replacement as an embedded Web container for JBoss AS, but cannot really compete as a standalone Web server in an enterprise application deployment. In the enterprise world, I don't seem much use for a native Web server unless I can throw it in the DMZ and have it load-balance to app servers running behind a firewall. With a lack of mod_jk (or some alternative) support, I don't see how this is possible.
so if one has setup of standalone apache load balance several jboss servers and tomcat embeded in versions before jboss 5 - what are alternatives of load balancing if one wants to use jboss 5 with jbossweb server and where is doc or how to on this?