简体   繁体   English

托管tomcat和嵌入式tomcat有什么区别?

[英]What is the difference between managed tomcat and embedded tomcat?

I am not sure that I understand the difference between these two types of tomcats (embedded and managed). 我不确定我是否理解这两种类型的tomcats(嵌入式和托管式)之间的区别。

I am going to setup arquillian test for my project on tomcat and I have to choose between embedded tomcat or managed tomcat (since there are different ppom.xml settings and dependencies). 我将在tomcat上为我的项目设置arquillian测试,我必须在嵌入式tomcat或托管tomcat之间进行选择(因为有不同的ppom.xml设置和依赖项)。 Please tell me what is the difference and which one I should choose for running my arquillian tests. 请告诉我有什么不同,我应该选择哪一个来运行我的arquillian测试。

I found the answer from the "Arquillian testing guide" book. 我从“Arquillian测试指南”一书中找到了答案。

Embedded containers: Arquillian will start up for you during the test process and shutdown after the test are run, on the same JVM as your test case. 嵌入式容器:Arquillian将在测试过程中为您启动并在测试运行后在与测试用例相同的JVM上关闭。

Managed containers : Arquillian will start up for you during the test process and shutdown after the test are run but run in a different JVM 托管容器:Arquillian将在测试过程中为您启动并在运行测试后关闭但在不同的JVM中运行

Remote containers : assumed to be running prior to the test and will simply have deployments sent and tests executed 远程容器:假设在测试之前运行,并且只是发送部署并执行测试

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

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