Matthew is a DZone employee and has posted 155 posts at DZone. You can read more from them at their website. View Full User Profile

Java, .NET, and PHP In One Webapp? The Holy Grail of Mashups.

  • submit to reddit

What if you could run a single webapp with Java, PHP, and ASP.NET AJAX in one webapp?  Stay with me for a minute, because I think there might be a powerful combination here!This morning I came across an announcement from Mainsoft about how their latest release lets developers run ASP.NET AJAX applications from Microsoft on Tomcat and Websphere.  This got me thinking: what if you could combine that with Java and PHP in the same application?  

Lately, we've been doing a lot of PHP work here at DZone (sometimes to my chagrin!), and I've been keeping a close eye on Quercus from Caucho (the makers of Resin), hoping to see some light on how to get our app running on their platform.  With Quercus, I can already combine a PHP frontend with a much more scalable Java backend.  To me, this represents the possibility of an important change in web application development.  There are a ton of people who like PHP because its easy to use and easy to build web applications with.  Unfortunately, I prefer (and trust) my Java backends much more.  What better way to compromise than to combine them?

With the announcement from Mainsoft this week, wouldn't it be possible to also combine .NET into the equation?  I'm not entirely sure how they do it, but theoretically, you could have some portions of the frontend be an ASP.NET AJAX application.  The demos I saw of Microsoft's AJAX technology sure led me to feel like they had some cool stuff going there. 

Most of you are probably thinking I wrote this before I'd had a chance to clear the cobwebs out in the morning, or maybe I'm just having early onset senility :)  Either way, what do you guys think?  Quercus already runs outside of Resin, the Mainsoft stuff probably could be ported too.   Would this represent an interesting possibility if it could be made to work on other application servers?  I'm excited about all the work lately that has been going on to run other languages in the Java VM.  The Java platform is here to stay.


David Lee replied on Thu, 2008/04/10 - 9:49am

Yeah, it's here to stay but you have read the other posts on java hosting and the missing mvm ?
Really, who would need such a platform. Certainly not java developers ?

I just switched my apps to resin, and I'm loving it. But Quercus is simply causing me to give writing or maintaining something in java pause when there are excellent free php alternatives available. I wrote a blogging app, but now since I'm have Quercus, I decided to download Wordpress. The entire thing is less then 1.5 megs and took 5 minutes to get going. JRoller is what caused me to write my own in the first place. Let's just say it's not 1.5 megs and it was a configuration challenge a few years ago.

I'm a java developer, so I won't be switching over to fulltime php anytime soon, but more options on the jvm may be good for the jvm, but not so much for the java language. Why write your web app in java, when you can use a simpler and less costly option first and move to the JVM only when you need its scalability and other features.

There have been some good discussions on this site that have really highlighted some notable voids in the java space.

This sounds cool, but seems to have a limited audience. Quercus is great but it too has a limited audience.

Chris Roane replied on Thu, 2010/03/11 - 11:21am

Hmm...this is a scary thought. I do not like this because now web apps require either a diverse team that knows how to program in a number of different languages and you have to keep additional pieces of software up to date on the server. This adds a whole new layer of complexity to even a simple application.

Stiv Stivvy replied on Mon, 2011/11/14 - 6:46am

am starting a project that will use java and php. can you people please offer some assistance by showing me how we go about combining the two.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.