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.因為它們很容易安裝和使用。