Which one is the better Java EE application server? Glassfish or JBOSS

My answer to Which one is the better Java EE application server? Glassfish or JBOSS

Answer by Vaibhav Kashyap:

Both Glassfish & JBOSS are full fledged JEE servers other than the TOMCAT which is merely an HTTP server and Java servlet container. Now out of these two servers GlassFish and JBoss, the selection of an application server is a strategic business decision.

I’ll be answering your question on certain factors depending upon which you need to access the requirements of your application and then decide which one to go for :-

1) The Installation and getting started :

Jboss :

To start, RedHat have made it simple as well with the bin/standalone.sh script, unless you want to run a clustered environment. Also there are several default configuration files in “standalone/configuration” directory, which allow to turn on and off default clustering and choose between web or full EE profiles, so one can pick the closest to what is needed and tweak it minimally.

Largest download, unzip install, slower, “standalone” named startup scripts.

Glassfish :

No straightforward way to start the server, multiple install methods including unzip install is good, reasonable download size, but still large.

Jboss wins over glassfish.

2) Tooling support :

Jboss : There’s a maven plugin to manage your jboss instances. Its functionality includes starting and stopping, deploying and redeploying apps, managing resources and executing commands like through a jboss CLI(Command Line Interaface).

Good cross IDE support, able to make light server config changes, good maven support

GlassFish :

GlassFish has also plugin for Maven and Ant which are quite well developed, enabling functionalities like deploy, undeploy, start and stop the server.

Info about where to find plugins is poor, great IDE support once the plugins were found (particularly with NetBeans and Eclipse).

Both are equal.

3) Server Configuration :

Jboss:

The whole default config is just 15KB (300 lines) of xml, located in a very predictable location. It also contains a couple of larger sample configuration for clustering. Changes are pretty static, configuration files are read at the start and isn’t reread automatically. However, a simple CLI (Command Line Interface) command: [MyJboss]$ bin/jboss-cli.sh –connect :reload This will do the thing for you without restarting the server.

Single file, 300 lines of xml 😦 Easy to config, well structured “subsystems” configuration, CLI reloads rather than restarts (manual process), several examples out-of-the-box.

Glassfish :

Some configuration changes require that you restart the DAS or GlassFish Server instances for the changes to take effect. Other changes are applied dynamically without requiring that the DAS or instances be restarted.

Config is hard to get at, hard to read xml file, as admin is the recommended approach, but it’s hard to get started with, need docs and experience.

JBOSS is better in this case.

4) Documentation & Community :

Jboss : Slower releases, but docs are good, large community.

GlassFish : good docs, awkward to navigate to, some docs are outdated, good sized community, mailing lists, active forums.

Both are equal on this note.

Cheers!!!

Which one is the better Java EE application server? Glassfish or JBOSS

Advertisements

Currently Working as Game Developer at Gaussian Networks Private Limited , ( www.adda52.com ). Did B.Tech in computer science Engineering from G.G.S.I.P University , new delhi. Using Java , ActionScript 3.0 and PHP for development. I am a programmer who loves to adapt new platforms for coding. Reading techs & specs of gadgets is my hobby as i am a 24x7 active web crawler. I consider learning as a best helping aid to yourself as well as for others because it's the best means for diversifying your knowledge.

Posted in J2SE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: