What Java Needs Most To Be The Preferred Web 2.0 Language什么Java和最需要的是首选Web 2.0的语言
Many would think at this point I am talking about better AJAX support in the core.很多人会认为在这一点上我所说的更好的Ajax的支持,在核心。 While we do need better support for AJAX and I am not talking about DWR, I don’t think that’s what ails Java in its quest for being .同时,我们确实需要更好地支持Ajax的,我不是在谈论dwr ,我不认为这是什么ails Java在追求福祉。 At the end we will look at two ways in which we can overcome this problem.在为此,我们将看看两种方式,使我们可以克服这个问题。
Java is taking a beating in better mass adoption against PHP simply because it is harder to setup in web hosting environment. Java是采取殴打,在群众更好地通过对PHP的简单,因为它是难以安装在Web托管环境。 PHP and even Ruby is available as an Apache module which is very trivial to setup and use. PHP和红宝石,甚至可作为Apache模块这是非常微不足道的安装和使用。 JSP / Servlets on the other hand is much harder to integrate with Apache. JSP中/ / Servlets在另一方面是更加难以整合与Apache 。
Why Apache is the the key to Web 2.0 adoption? 为什么阿帕奇是关键的Web 2.0通过?
Apache is the most popular web server, known for its stability and ease of use. Apache是最流行的Web伺服器,已知其稳定性和易用性。 It is cross platform.这是跨平台。 Most Web 2.0 companies and products rely on Apache as their web server and for right reasons.大多数Web 2.0的公司和产品依赖于他们的Apache Web Server和右的原因。
What are the problems of Java in Apache Integration? 有什么问题的Java在Apache整合?
Complexity in short.复杂性在短期内。 Tomcat is probably the most popular JSP, Servlet container for most organizations.雄猫可能是最流行的的JSP , Servlet的容器,大多数组织。 Tomcat is free (which aids its popularity) and developed under the Apache organization.雄猫是免费的(即艾滋病的受欢迎程度)和发展下的Apache组织。 I would have expected both these products to be tightly integrated.我想,预计这两项产品被紧密集成。 In reality it is a nightmare from hell to even begin.在现实中这是一个来自地狱的梦魇,甚至开始。 I wouldn’t say there aren’t any documents.我不会说是没有任何文件。 There are有 few少数的 confusing混乱 ones which leads to more questions than answers.那些导致更多的问题多于答案。 What we lack is a clear simple guideline to integrate the two.我们缺乏的是一个明确的指引,简单的整合2 。
Solutions 解决方案
Previouly I had described a much simpler way to previouly我所描述的更简单的方式,去 integrate Tomcat 5.5 with Apache 2.x整合的Tomcat 5.5与Apache 2.x的 , in just 5 steps. ,在短短的5个步骤。
However we need to move further.不过,我们需要提出进一步。 We need to make Java Servlet container as easily integratable as php or ruby .我们需要使Java Servlet的容器很容易集成作为PHP中,或者红宝石。 Running a separate Tomcat instance may not be an acceptable solution to many web hosting providers.运行一个单独的Tomcat ,例如可能不是一个可以接受的解决办法许多Web托管服务提供商。 We need to be able to run Tomcat within Apache itself, use its threads.我们需要能够运行的Tomcat与Apache的本身,利用其线程。 In the distant past there was another Apache project JServ which did that.在遥远的过去还有一个Apache项目jserv ,其中这样做。 Later it was discontinued in favor of Tomcat.后来它被停止在赞成的Tomcat 。 Tomcat is powerful but most small developers do not need its full gamut of capabilities.雄猫是强大的,但大部分小型地产商并不需要充分的所有能力。 Most of them would be happy with a smaller subset which is available everywhere, even on one dollar hosting .他们大多会很乐意与一个较小的子集是无处不在,甚至在1美元兑主办 。
And finally Sun and java community needs to approach web hosting providers and make the language ubiquitous in every hosting platform, big or small.最后, Sun和Java社区需要的做法,网站托管服务提供商,使语文无处不在每一个托管的平台,或大或小的。 Apachefriends has done an admirable job with XAMPP for LAMP community and has made Tomcat 5.5 available with its simplified LAMP installation. apachefriends已做了令人钦佩的工作与xampp灯社区,并已取得的Tomcat 5.5提供其简化灯安装。 Now if only we could package Java with all Linux and BSD installations by default…现在,只要我们能包的Java与所有Linux和BSD安装默认情况下…
Filed under提起下 Headline News头条新闻 , , Java Software Java软件 , , Technology技术 , , Web网页 , , Web Hosting虚拟主机 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |




September 26th, 2006 at 5:11 am 2006年9月26日在上午05时11分
Totally agree.完全同意。 I remember my first xml/jsp project on JServ for Onstar.我记得我第一个XML / JSP的项目, jserv为onstar 。 Part of what Java needs IMO is the same groundswell from the developers who use php , ruby, etc. Targeting the “enterprise” developer is not enough.部分有什么需要Java的国际海事组织是相同的groundswell从开发谁使用PHP ,红宝石等,针对“企业”的开发是不够的。
September 26th, 2006 at 8:59 am 2006年9月26日在上午8时59分
JServ ran in a separate process from Apache and used an apache mod connector, just like Tomcat does. jserv然在一个单独的进程,从Apache和使用Apache的连接器按付款当日价格计算,就像雄猫是否。 Remember mod_jserv?记得mod_jserv ? It performed exactly the same function as mod_jk, but much more limited.它的表现不尽相同的功能, mod_jk ,但要有限得多。 It was no joy to configur either.这是没有喜悦configur 。
The difficulty with running Tomcat IP with Apache is you can’t run Java code inside another process.困难与运行的Tomcat IP与Apache是您无法执行Java程式码内的另一个进程。 You have to start up a VM as its own process and then use IPC to communicate between Apache and Tomcat.你要开始了一个越南船民作为其本身的进程,然后使用IPC的沟通之间的Apache和Tomcat和。 It’s certainly something Sun could address with the VM, but I haven’t heard anything about them moving in that direction.它的一定孙可处理与越南船民,但我没有听到任何有关他们朝着这一方向。
Besides, large companies tend to choose to separate their app server and web server functions on different machines.此外,大公司倾向于选择以逗号分开他们的应用服务器和网络服务器的功能不同的机器。 That way you can protect database servers or other protected resources from being accessed and attacked on the web server.这样,您可以保护数据库服务器或其他受保护的资源被访问和攻击Web服务器上。 So it’s primarily smaller shops or individiual developers that would benefit from merging the web server and app servers.因此,它的主要是规模较小的商店或individiual发展商将受益于合并, Web服务器和应用程序服务器。
September 26th, 2006 at 9:20 am 2006年9月26日在上午09时20分
> Remember mod_jserv? >记得mod_jserv ?
Yes, I do是的,我做的
> So it’s primarily smaller shops or individiual developers that would benefit from merging the web server and app servers. >所以它主要是规模较小的商店或individiual发展商将受益于合并, Web服务器和应用程序服务器。
Not just smaller shops (who aren’t an insignificant segment either) but also bigger shops who want to test the water’s.不只是规模较小的商店(谁是不是一个微不足道的部分要么) ,而且还更大的商店谁想要测试水的。 For better mass adoption any language shouldn’t be restricted to bigger houses only but even be easily accessible to mom-and-pop ecommerce sites too.为更好地大规模采用任何语言不应该局限在更大的房子,只有但即使能够容易地向妈妈和流行电子商务网站。
Take for example blogging softwares.采取例如博客的软件。 There are high quality java blogging software available for free and yet most of us use WordPress or MovableType / Typepad.有高品质的Java博客软件,供免费,但我们大多数人使用的WordPress或movabletype /输入键盘。 Why?为什么? Because they are easy to setup and use.因为它们很容易安装和使用。