Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences when deploying on Tomcat vs. Websphere?

If I were to deploy an application on Tomcat vs. Websphere, what are things that I need to consider?

Do I have to develop my Java code differently if developing in one app server vs another?

Edit:

I will be funneling people from a website into a web app that does credit card processing and e-signatures (cc processing and e-sigs are through separate services). That is its sole job

like image 565
john Avatar asked Sep 22 '11 19:09

john


People also ask

What are the main differences between Apache and Tomcat Web servers?

the Apache HTTP Server, but the fundamental difference is that Tomcat provides dynamic content by employing Java-based logic, while the Apache web server's primary purpose is to simply serve up static content such as HTML, images, audio and text.

Can we deploy war in Websphere?

Websphere 7 is a Java-ee 5 application server and provides so both ejb and servlet container. It's so indeed possible to deploy a war. If your web-application ( war ) is part of your Java-ee application ( ear ) you have to package it inside the ear , otherwise you can deploy it alone.

What is WebSphere Application Server Network Deployment?

WebSphere Application Server Network Deployment provides a flexible, secure server runtime environment for large-scale and mission-critical application deployments. It is available on premises or for public, private, or hybrid cloud.

What is the advantage of Apache Tomcat?

Web app deployment made easy Apache Tomcat is Open-sourced, and it's free to use. Multiple applications can run at the same time without any issues. Apache Tomcat Has excellent built-in security features and provided a rich API sets.


3 Answers

You cannot use EJBs on Tomcat (unless you add OpenEJB). If your WebSphere deployment uses EJBs, you'll have to remove them to deploy on Tomcat.

If you use any Java EE features beyond servlet/JSP engine and JNDI naming service you'll have to eliminate them from your app.

Tomcat accepts WAR packages. If you package your app into an EAR on WebSphere, you'll have to change it to WAR for Tomcat.

Both use JNDI for data sources. There might be some nagging differences in naming conventions, but if you stick to the standard they should be portable.

If you use any WebSphere specific code in your app, you'll have to remove it to deploy on Tomcat.

If your app is servlets, JSPs, and JDBC you can deploy on either one without any problems.

like image 134
duffymo Avatar answered Nov 09 '22 23:11

duffymo


You can think as Tomcat as a subset of Websphere, so theoretically everything that works on Tomcat will work in Websphere.

But...Deploying in Websphere, in my humble opinion, is a terrible pain, while deploying in Tomcat just works. (And if fails, just delete temporary folders)

Without knowing the technologies you are using, that's all I can say.

like image 34
Pablo Grisafi Avatar answered Nov 09 '22 22:11

Pablo Grisafi


Depends, what are you trying to deploy?

Tomcat isn't a full EE server--are you trying to deploy an EE app?

If you're just deploying a web app, it's more important to consider which version of the servlet spec/etc. each server implements.

like image 28
Dave Newton Avatar answered Nov 09 '22 22:11

Dave Newton