Amit Kumar Gupta
Amit Kumar Gupta

Reputation: 7413

Is Java (Java EE) not good for building a wordpress like CMS?

I observed that generally all good CMS, forums and portals are written in PHP only. Some of them are written with the help of Python, Ruby, etc.

Some of the CMS which were build in Java, were not so flexible as wordpress is. Is Java (Java EE) not good for building a wordpress like CMS?

Upvotes: 7

Views: 5035

Answers (5)

Michael Borgwardt
Michael Borgwardt

Reputation: 346317

For an example of a fully-featured CMS written in Java, take a look at Alfresco.

Upvotes: 1

I think the primary reason is that many CMS's have grown from an initial small implementation instead of being designed from the start to be able to be big.

Small implementations are nice and easy to do in PHP or other scripting languages, and you can grow them pretty big, but if you know up front that you want something big you make it part of the original specification.

These days most people agree that you need a strong, fast, scalable runtime system where the major contenders these days are the JVM and the .NET runtime.

When you have made THAT decision, PHP is not the immediate, intuitive choice for a big scalable system.

Upvotes: 11

Joonas Pulakka
Joonas Pulakka

Reputation: 36577

Facebook, portals and forums use PHP. Banks and flight ticket reservation systems use Java. I think it pretty much summarizes their difference.

With amusement applications, it's important to get things done quickly and easily, and some dirtiness is acceptable. With real business, robustness, security and clarity are the primary goals, overriding the ease of getting things done quickly.

Upvotes: 9

Tim M.
Tim M.

Reputation: 54377

i observed that generally all good CMS, forums and portals are written in PHP only.

That's a broad generalization. Case in point: one of the most widely-used CMS systems in the world is Microsoft SharePoint, written mainly in .Net/SQL Server.

To your specific question, PHP has a great community around it and lends itself to rapid application development. Technically, Java is arguably better structured and more object-oriented, but in my experience there is a higher bar to entry.

Ultimately, it comes down to what you are comfortable with and the specific requirements of your application.

Upvotes: 4

cadolphs
cadolphs

Reputation: 9617

As always, it depends :)

An advantage of PHP is that it is available on a lot of web servers and quite "simple" to program. Also, it was designed with the intent of being integrated into web sites.

In principle, you could do this with Java as well, either with JavaScript (which really doesn't have too much to do with Java...) or as an Applet. The important difference is that applets are run on the client side, so when you actually want to manage content it would be on the wrong end, and you'd have to think about how to authenticate etc.

Upvotes: 0

Related Questions