在Tomcat和Websphere上进行部署有什么区别? [英] What are the differences when deploying on Tomcat vs. Websphere?

查看:494
本文介绍了在Tomcat和Websphere上进行部署有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果要在Tomcat vs. Websphere上部署应用程序,我需要考虑什么?

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

如果在一台应用程序服务器中与另一台应用程序服务器中进行开发,我是否必须以不同的方式开发Java代码?

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

我将把人们从一个网站转移到一个进行信用卡处理和电子签名(抄送处理和电子签名是通过单独的服务)的Web应用程序中.那是它唯一的工作

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

推荐答案

您不能在Tomcat上使用EJB(除非添加OpenEJB).如果您的WebSphere部署使用EJB,则必须删除它们才能在Tomcat上进行部署.

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.

如果您使用servlet/JSP引擎和JNDI命名服务以外的任何Java EE功能,则必须从应用程序中删除它们.

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接受WAR软件包.如果将应用程序打包到WebSphere上的EAR,则必须将其更改为WAR for Tomcat.

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

两者都使用JNDI作为数据源.命名约定可能会有一些令人讨厌的差异,但是如果您遵循标准,则它们应该是可移植的.

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.

如果您在应用中使用任何特定于WebSphere的代码,则必须将其删除才能部署在Tomcat上.

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

如果您的应用程序是servlet,JSP和JDBC,则可以在其中任何一个上进行部署而没有任何问题.

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

这篇关于在Tomcat和Websphere上进行部署有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆