Marcus Downing
Marcus Downing

Reputation: 10141

Switching from Tomcat to Glassfish

In response to this error where pages are delivered incorrectly, we're considering a switch from Apache + Tomcat to Glassfish. This is inspired not by features, but by frustration with a fault that just won't go away.

The questions are:

Upvotes: 4

Views: 3272

Answers (2)

tronda
tronda

Reputation: 3942

In the project I'm working on we have changed from Tomcat to Glassfish because of the need for a appserver with JMS.

Should we use Glassfish in cooperation with Apache, or replace Apache entirely?

Strictly speaking you don't need Apache in front. Glassfish has some configuration options to create virtual domains like you get from Apache. More information here. I guess this depends on your needs. Glassfish do support mod_jk module in Apache in front of Glassfish. We use mod_jk.

Should we use Glassfish 2 or 3? Version 3 seems to be a complete rewrite

According to the roadmap, Glassfish 3 will not be released until the end of September 2009, and even then it doesn't support features such as High Availability clustering before 3.1 comes out. Some info here. So personally I would have waited for 3.1, but that's just me :-)

How well can Apache and Glassfish cooperate on the same server?

There's no problem using Glassfish and Apache on the same server

Is there an easier way? I'd hate to do all this work for nothing.

Yes. Using Glassfish own http and virtual host configuration, but again it depends on your needs.

Upvotes: 10

user496208
user496208

Reputation: 69

Get Glassfish v3 in its Web Profile Version. It's a lighter solution while keeping all the functionality needed and with a better management console than Tomcat. GF v3 also supports hot redeployment preserving existing web sessions across it. It works great. We also use mod_jk with apache in front of glassfish because we run multiple domains for diferent projects listening on diferent ports but need to serve all the contents through port 80. If you only need one domain, you could use Glassfish v3 to serve all the contents configuring the http-listener to use port 80. This is done through the management console, visually. Good luck.

Upvotes: 0

Related Questions