简体   繁体   English

是否有任何可放入非j2ee Web服务器的独立EJB容器?

[英]Is there any standalone EJB container that drops into non-j2ee web servers?

Right now I am using a web-server which does not contain EJB container. 现在,我正在使用不包含EJB容器的Web服务器。 If my application needs EJB container, how could I add one? 如果我的应用程序需要EJB容器,如何添加一个?

OpenEJB and EasyBeans are open-source EJB containers that can be dropped into Tomcat or other servers / applications. OpenEJBEasyBeans是可以拖放到Tomcat或其他服务器/应用程序中的开源EJB容器。

But, you should describing what you need this for... because if you need EJBs specifically, you're probably better off going with a full app server (JBoss, Glassfish, Weblogic, etc.). 但是,您应该描述所需的功能...因为如果您特别需要EJB,则最好使用完整的应用程序服务器(JBoss,Glassfish,Weblogic等)。 If you're just using it for persistence, you're probably better off using some other persistence technology (Hibernate, iBatis, etc.). 如果只是将其用于持久性,则最好使用其他一些持久性技术(Hibernate,iBatis等)。

Do you really mean into ? 你真的是说吗? If yes, then maybe have a look at OpenEJB (the EJB Container implementation for Apache Geronimo). 如果是,那么可以看看OpenEJB (Apache Geronimo的EJB容器实现)。 But I can't say that it's widely used. 但是我不能说它被广泛使用。

Actually, why not just replacing your servlet container with a full Java EE server if you need EJBs, I don't get it, something like JBoss AS or GlassFish. 实际上,如果您需要EJB,为什么不只用一个完整的Java EE服务器替换您的servlet容器,我却不明白,比如JBoss AS或GlassFish。

JBoss is an open source J2EE server. JBoss是一个开源J2EE服务器。 So if for some reason you can't just use it, you could take the EJB container and graft it into something else. 因此,如果由于某种原因而不能仅仅使用它,则可以将EJB容器移植到其他容器中。 Probably not a small job. 可能不是一个小工作。

Too litte information on your architecture to give a decent answer. 有关您的体系结构的信息太少,无法给出正确的答案。

Anyway chances are good you already apache as web server, you can simply connect using mod_jk to the embeddd tomcat in jboss. 无论如何,您已经很有可能成为Web服务器,您只需使用mod_jk连接到jboss中的embeddd tomcat。 This configuration will use the Apache JServ Protocol (AJP) for communication between Apache and Tomcat. 此配置将使用Apache JServ协议(AJP)在Apache和Tomcat之间进行通信。

A description on which config files you have to fiddle about is here 您必须在其中摆弄哪些配置文件的描述在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM