<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://php.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>PHP Zone - Comments for &quot;Open-source Web applications, PHP vs. Java (Part 2 of 2)&quot;</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0</link>
 <description>Comments for &quot;Open-source Web applications, PHP vs. Java (Part 2 of 2)&quot;</description>
 <language>en</language>
<item>
 <title>&quot;I believe
that it is only a</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-5268</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;&amp;quot;I believe
that it is only a matter of time until the effects are felt in the
enterprise space: less enthusiastic Java specialists, less innovation,
decreasing quality of products and so on. Some say that the effects are
already present – what do you think?&amp;quot;&lt;/p&gt;&lt;p&gt;This implies that PHP stays still, but maybe PHP will evolve faster and surpass JAVA programming enviroment in next years. Who knows? &lt;/p&gt;</description>
 <pubDate>Fri, 25 Jul 2008 06:06:46 -0400</pubDate>
 <dc:creator>sgstefan</dc:creator>
 <guid isPermaLink="false">comment 5268 at http://php.dzone.com</guid>
</item>
<item>
 <title>edvin@sysedata.no wrote:I</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3107</link>
 <description>&lt;!--paging_filter--&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;edvin@sysedata.no&lt;/em&gt; wrote:&lt;/div&gt;&lt;p&gt;I agree it can be cumbersome when you just want &amp;quot;something small&amp;quot;, but again - writing a few lines in pom.xml really isn&#039;t that big a deal, and as you mention - most providers have some kind of a base package that would be comparable to the stuff you get with PHP (atleast if you are writing JSP). I know that some users will still feel that way, and I absolutely think your approach with OSGi and Jetty seems very interesting.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;We&#039;re exhibiting at JavaOne and our booth is near the Jetty guys. Today I&#039;ll drop by and have a talk with them regarding this issue.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;edvin@sysedata.no&lt;/em&gt; wrote:&lt;/div&gt; &lt;/p&gt;&lt;p&gt;As a service provider I&#039;d be willing to join in to experiment around this :) I believe the key to success is actually not just on the serverside - but on the client side as well, concerning deployment of the OSGi bundle. Most tools for creating jars and wars are rather dismal, and when you throw in the extra manifest info you need in the OSGi bundle, it is imperative that the end user experience is smooth for this to be successful.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;If you need tools for creating OSGi bundles in general I think that Eclipse offers you the best support. With those you can work both on Equinox and pure OSGi bundles. We should not focus on these right now though. Instead, cheap and easy deployment of already bundled smaller Web projects should be our target. &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;edvin@sysedata.no&lt;/em&gt; wrote:&lt;/div&gt; &lt;/p&gt;&lt;p&gt;I could set up a Solaris Zone to play around with the concept if you/others would like to join in :) &lt;/p&gt;&lt;p&gt;&lt;/div&gt;
&lt;/p&gt;&lt;p&gt;Sounds cool. What exactly do you mean by a Solaris Zone? &lt;/p&gt;&lt;p&gt;Maybe it would be the best if we moved this discussion off the article comments. I set up a dedicated forum on small-scale Java hosting on the Numiton forums (registration required): &lt;a href=&quot;http://www.numiton.com/forum/viewforum.php?f=7&quot; target=&quot;_blank&quot;&gt;http://www.numiton.com/forum/viewforum.php?f=7&lt;/a&gt;.&lt;/p&gt;</description>
 <pubDate>Wed, 07 May 2008 10:14:49 -0400</pubDate>
 <dc:creator>sky_HALud</dc:creator>
 <guid isPermaLink="false">comment 3107 at http://php.dzone.com</guid>
</item>
<item>
 <title>zynasis wrote:java hosting</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3097</link>
 <description>&lt;!--paging_filter--&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;zynasis&lt;/em&gt; wrote:&lt;/div&gt;&lt;p&gt;java hosting is more expensive because the apps that typically on them are heavier and use more resources than php services.&lt;/p&gt;&lt;p&gt;i think the main reason theyre like that is because theyre bloated with far too much junk that comes &amp;quot;out of the box&amp;quot; with them.&lt;/p&gt;&lt;p&gt;cut this back and we&#039;ve got a light weight easy to deploy service! &lt;/p&gt;&lt;p&gt;&lt;/div&gt;
&lt;/p&gt;&lt;p&gt;I used to think the same. I did set up a pretty thorough test though (see &lt;a href=&quot;/news/hosting-java-web-applications-&quot; target=&quot;_blank&quot;&gt;this post&lt;/a&gt;) with phpBB 2 and &lt;a href=&quot;/nbb2.sourceforge.net&quot; target=&quot;_blank&quot;&gt;nBB2&lt;/a&gt; (its direct Java equivalent). The result was that even lightweight Java apps do have serious hosting issues. The cheapest hosting option for Java was around 15$ with a private JVM having 32 MB max heap, but it already started to outperform the PHP option at 10 concurrent users.&lt;/p&gt;&lt;p&gt;I do think that a proper shared hosting solution coupled with some lightweight Java projects (migrated from PHP) can outperform PHP in both quality and costs. &lt;/p&gt;</description>
 <pubDate>Tue, 06 May 2008 07:03:02 -0400</pubDate>
 <dc:creator>sky_HALud</dc:creator>
 <guid isPermaLink="false">comment 3097 at http://php.dzone.com</guid>
</item>
<item>
 <title>I agree it can be cumbersome</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3098</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I agree it can be cumbersome when you just want &amp;quot;something small&amp;quot;, but again - writing a few lines in pom.xml really isn&#039;t that big a deal, and as you mention - most providers have some kind of a base package that would be comparable to the stuff you get with PHP (atleast if you are writing JSP). I know that some users will still feel that way, and I absolutely think your approach with OSGi and Jetty seems very interesting.&lt;/p&gt;&lt;p&gt;As a service provider I&#039;d be willing to join in to experiment around this :) I believe the key to success is actually not just on the serverside - but on the client side as well, concerning deployment of the OSGi bundle. Most tools for creating jars and wars are rather dismal, and when you throw in the extra manifest info you need in the OSGi bundle, it is imperative that the end user experience is smooth for this to be successful. &lt;/p&gt;&lt;p&gt;I could set up a Solaris Zone to play around with the concept if you/others would like to join in :) &lt;/p&gt;</description>
 <pubDate>Tue, 06 May 2008 07:00:11 -0400</pubDate>
 <dc:creator>edvin@sysedata.no</dc:creator>
 <guid isPermaLink="false">comment 3098 at http://php.dzone.com</guid>
</item>
<item>
 <title>edvin@sysedata.no wrote:With</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3096</link>
 <description>&lt;!--paging_filter--&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;edvin@sysedata.no&lt;/em&gt; wrote:&lt;/div&gt;&lt;p&gt;With PHP, you get the provider&#039;s precompiled set of utilities and libraries bundled with PHP. This seems like a good thing at first, because you don&#039;t need to upload all your library dependencies yourself. But if you need a spesific version of say an XML parser, you might not see this as such a good thing, as your provider in most cases will be unwilling to update jus to satisfy your need.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Good point. Actually some Java shared hosting providers do provide preloaded libraries, but in JAR format so that you get one version available to you. Java already has a solution to this issue with OSGi bundles/plugins where you can have as many versions as you like and from the descriptors one can declare dependencies to specific library versions. There are most certainly solutions to this. It&#039;s just that Java shared hosting did not reach a critical point yet.  &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;quote&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;edvin@sysedata.no&lt;/em&gt; wrote:&lt;/div&gt; &lt;/p&gt;&lt;p&gt;When you buy a Java hosting solution, you can/must upload your own dependencies, I guess this is what you refer to as bloat. This gives you the opertunity to run with EXACTLY the same versions of your libraries both in local dev and in deployment. This is a HUGE advantage, and you don&#039;t need to waste time with adapting/bughunting because of version skews and API breaks etc.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Well, technically this is bloat if you want to host something small. There should be a way for non-technical people to be able to host Java apps just as easily as PHP ones. Maybe it would be worth experimenting.&lt;/p&gt;&lt;p&gt;I would be willing to throw in a dedicated server and attempt to set up a killer Java shared hosting solution (probably with OSGi and Jetty) just to show that it can be done effectively. It would have limited availability and would be free or extremely cheap - profits are irrelevant, I only want to prove things. All configuration details could then be made public so that others could follow. I think that would be a first for Java at least. Anyone interested in collaborating or using such a service? &lt;/p&gt;</description>
 <pubDate>Tue, 06 May 2008 06:43:38 -0400</pubDate>
 <dc:creator>sky_HALud</dc:creator>
 <guid isPermaLink="false">comment 3096 at http://php.dzone.com</guid>
</item>
<item>
 <title>With PHP, you get the</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3095</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;With PHP, you get the provider&#039;s precompiled set of utilities and libraries bundled with PHP. This seems like a good thing at first, because you don&#039;t need to upload all your library dependencies yourself. But if you need a spesific version of say an XML parser, you might not see this as such a good thing, as your provider in most cases will be unwilling to update jus to satisfy your need.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;When you buy a Java hosting solution, you can/must upload your own dependencies, I guess this is what you refer to as bloat. This gives you the opertunity to run with EXACTLY the same versions of your libraries both in local dev and in deployment. This is a HUGE advantage, and you don&#039;t need to waste time with adapting/bughunting because of version skews and API breaks etc.&lt;/p&gt;&lt;p&gt;With tools like Ant, Maven and Ivy, dependency management is easy and straight forward, and the extra upload sice really is not relevant, both because &amp;quot;everyone&amp;quot; have fast connections, and you don&#039;t need to upload your dependencies everytime you change your code :) &lt;/p&gt;&lt;p&gt;A Java process will ofcourse use more concurrent resources, as the the process is ALIVE all the time. This gives you incredible opertunities as a programmer, compared to a language where everything is parsed on every request - talk about wasting resources :) In our system, we see about 18MB usage for every new PHP process spawned (using suPHP), whereas every request to an already started Java container just uses the minimal memory needed to deal with the business-aspect of each request :) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Tue, 06 May 2008 05:29:54 -0400</pubDate>
 <dc:creator>edvin@sysedata.no</dc:creator>
 <guid isPermaLink="false">comment 3095 at http://php.dzone.com</guid>
</item>
<item>
 <title>java hosting is more</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3092</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;java hosting is more expensive because the apps that typically on them are heavier and use more resources than php services.&lt;/p&gt;&lt;p&gt;i think the main reason theyre like that is because theyre bloated with far too much junk that comes &amp;quot;out of the box&amp;quot; with them.&lt;/p&gt;&lt;p&gt;cut this back and we&#039;ve got a light weight easy to deploy service! &lt;/p&gt;</description>
 <pubDate>Mon, 05 May 2008 23:31:20 -0400</pubDate>
 <dc:creator>zynasis</dc:creator>
 <guid isPermaLink="false">comment 3092 at http://php.dzone.com</guid>
</item>
<item>
 <title>I think Java hosting is</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3075</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I think Java hosting is actually a big problem. It is simply more expensive. Plus PHP hostings preinstall  a lot of components for clients.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Mon, 05 May 2008 01:22:40 -0400</pubDate>
 <dc:creator>dn68495</dc:creator>
 <guid isPermaLink="false">comment 3075 at http://php.dzone.com</guid>
</item>
<item>
 <title>yes, you can.</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3074</link>
 <description>&lt;!--paging_filter--&gt;yes, you can.</description>
 <pubDate>Mon, 05 May 2008 01:20:43 -0400</pubDate>
 <dc:creator>dn68495</dc:creator>
 <guid isPermaLink="false">comment 3074 at http://php.dzone.com</guid>
</item>
<item>
 <title>About the shared hosting</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3027</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;About the shared hosting problem (apps using resources even though they aren&#039;t getting any requests): Ruby on Rails had a similar issue where you needed &amp;quot;mongrels&amp;quot; running all the time, with a predetermined number of processes per web application. This has been solved beautifully by mod_rails / passenger; it keeps the Rails framework in memory, and &amp;quot;spins up&amp;quot; application instances as requests come in. It keeps the instance running until no requests have been made for a configurable period, with a configurable quota on the maximum number of instances. So no requests: no memory consumption.&lt;/p&gt;&lt;p&gt;Of course this approach is currently framework specific (only works with Rails), but java web deployment already has a standard mechanism (deploying WARs), so maybe a dynamic deploy/undeploy based on requests could be a nice solution. With this approach, the startup time of java web applications would of course have to be as low as possible so the visitor doesn&#039;t get a long delay when an undeployed application needs to be spun up. &lt;/p&gt;</description>
 <pubDate>Fri, 02 May 2008 08:51:02 -0400</pubDate>
 <dc:creator>bosmeeuw</dc:creator>
 <guid isPermaLink="false">comment 3027 at http://php.dzone.com</guid>
</item>
<item>
 <title>When programming JSP, you</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3023</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;When programming JSP, you get a similar execution model to PHP, where changes are reloaded on the fly. &lt;/p&gt;&lt;p&gt;To take full advantage of what Java has to offer for web-developers however, you would use a framework or a method that deals with Java-code that only to some extent can be reloaded on the fly. In your dev-enviroment, when running in debug-mode, some, but not all types of code can be reloaded on the fly. There are work under way to make even more code hot-replacable, though.&lt;/p&gt;&lt;p&gt;To some degree this is annoying when debugging an UI-issue for example, but for the most part you can afford a reload that only takes a few seconds and is a keystroke away after you have programmed for ten minutes and wants to see the results :)&lt;/p&gt;&lt;p&gt;I use Apache Wicket as a web framework, and the small amount of time I use waiting for server reloads is easily gained by ease and speed of development and robustity of the end result :)&lt;/p&gt;&lt;p&gt;-- Edvin &lt;/p&gt;</description>
 <pubDate>Fri, 02 May 2008 07:56:33 -0400</pubDate>
 <dc:creator>edvin@sysedata.no</dc:creator>
 <guid isPermaLink="false">comment 3023 at http://php.dzone.com</guid>
</item>
<item>
 <title>Apologies for misreading</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3022</link>
 <description>&lt;!--paging_filter--&gt;Apologies for misreading Marco</description>
 <pubDate>Fri, 02 May 2008 07:22:34 -0400</pubDate>
 <dc:creator>skoop</dc:creator>
 <guid isPermaLink="false">comment 3022 at http://php.dzone.com</guid>
</item>
<item>
 <title>I didn&#039;t say &quot;production</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3020</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I didn&#039;t say &amp;quot;production environment.&amp;quot; &lt;/p&gt;&lt;p&gt;With a company I have developed some modules for Spring MVC and every time I had to redeploy in order to test (they did not use the JUnit). I wanted to know if is normal or if they did not know other solutions?&lt;/p&gt;</description>
 <pubDate>Fri, 02 May 2008 06:42:58 -0400</pubDate>
 <dc:creator>kanji</dc:creator>
 <guid isPermaLink="false">comment 3020 at http://php.dzone.com</guid>
</item>
<item>
 <title>Marco: And this is the</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3019</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Marco: And this is the difference between good developers and normal developers in a PHP environment.&lt;/p&gt;&lt;p&gt; A good developer knows that you should *never ever* modify your code on the production environment. Proper procedures should be in place.&lt;/p&gt;&lt;p&gt; Having said that, still for PHP you need not restart any services. You just deploy your changes to production and it&#039;s working. If I understand Java correctly, some processes need to be restarted for new deployments to take effect. &lt;/p&gt;</description>
 <pubDate>Fri, 02 May 2008 05:21:05 -0400</pubDate>
 <dc:creator>skoop</dc:creator>
 <guid isPermaLink="false">comment 3019 at http://php.dzone.com</guid>
</item>
<item>
 <title>I&#039;m php dev and I wanted to</title>
 <link>http://php.dzone.com/news/open-source-web-applications-p-0#comment-3018</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I&#039;m php dev and I wanted to ask to java dev: &lt;/p&gt;&lt;p&gt;in php if I must modify some project file I can make it in ssh, ftp or svn without need to touch other. &lt;/p&gt;&lt;p&gt;In java I can make the same things on the server without restart web container or redeploy to every modification?&lt;/p&gt;&lt;p&gt;thnx&lt;/p&gt;</description>
 <pubDate>Fri, 02 May 2008 05:01:07 -0400</pubDate>
 <dc:creator>kanji</dc:creator>
 <guid isPermaLink="false">comment 3018 at http://php.dzone.com</guid>
</item>
</channel>
</rss>
