How to EJB 3.1 Deployment in Tomcat 5.5.x [duplicate]

瘦欲@ 提交于 2019-11-28 10:53:39

问题


I have hosting plan which supports

i) Tomcat - 5.5.xSupport

ii) JDK - 1.6.x Support

iii) JSP/servlet - 2.0 Support

Am I able to deploy EJB 3.1 on this setup? I've heard that Tomcat does not support EJBs, but hopefully there is a workaround. Any advice is appreciated.


回答1:


Apache TomEE was previously the openEJB project if i am not mistaken. You can use the openEJB libraries provided to deploy ejbs on your tomcat instance. More on how to setup can be found at the followinglink:

http://openejb.codehaus.org/tomcat.html




回答2:


That's right, Tomcat is just a servlet container, thus you can deploy servlets and JSPs, but not EJBs. You need an application server like JBoss or Glassfish.

There is also an Apache TomEE project built on top of Tomcat and probably you can embed some lightweight EJB container inside Tomcat.



来源:https://stackoverflow.com/questions/13440421/how-to-ejb-3-1-deployment-in-tomcat-5-5-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!