Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I go with Tomcat or a full Java EE container?

I need to design a web service layer on top of an existing application. Really, I'm most interested in WS-Security and JMS support, possibly JTA.

What is the best server to use for this? Would it be a wise decision to go with lightweight Tomcat (which I'm experienced with), or would I be better off with a server that implements the full Java EE stack, such as JBoss AS, WebLogic, or even GlassFish?

like image 750
Cuga Avatar asked Dec 22 '22 11:12

Cuga


2 Answers

Generally, unless you know that you're trying to use Java EE services particularly, you're better off with just Tomcat. The Java EE environment is very heavyweight; J2EE was designed with really big environments like eBay in mind. (I wrote Sun's first J2EE architecture course; I've been following these arguments for a long time.)

But then, you say "JMS" which is strictly a Java EE service.

like image 159
Charlie Martin Avatar answered Jan 05 '23 02:01

Charlie Martin


You may want to experiment with JBoss and see how it can go with what you want, though, if you want to stay with Tomcat, you may want to look at the Spring Framework and see if that will have the features you want, as it is a way to have Java EE without having a Java EE container.

It depends on if you want to experiment with some ideas and see what will work for you, or just doing one thing, and stick with it regardless.

I tend to experiment until I feel comfortable that I know enough to make the best decision.

Personally I would go with Tomcat and Spring, but I have used Spring before.

It would be helpful if you could give a use case for using some of the features you mentioned, to see if there may be a better answer.

like image 27
James Black Avatar answered Jan 05 '23 02:01

James Black