应用服务器Jboss与Tomcat的使用经验(二)

2014-11-23 22:54:56 · 作者: · 浏览: 1
"Stand-alone Stack Tomcat support".
-- This means that JSP and Servlets will work with EJB in different stacks and
-- communicate through network invocation. If you benchmark j2ee please use "integrated stack".
-- Also note that you cannot use the J2EE deployer with Tomcat in this configuration.
-- Be sure to set your TOMCAT_HOME environment variable before starting JBoss.
-- Note: this reads the server.xml configuration file of Tomcat, you can t use the j2ee deployer
--
-- MLET CODE = "org.jboss.tomcat.TomcatService"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" >
-- /MLET >
-- >
在上面的提示下添加如下内容:
< MLET CODE = "org.jboss.tomcat.EmbeddedTomcatService" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/" >
< ARG TYPE="int" VALUE=8088 >
< /MLET >
现在在启动jboss可以看到如下提示:
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Testing if Tomcat is present....
[EmbeddedTomcat] OK
[EmbeddedTomcat] ContextManager: Adding context Ctx( )
[EmbeddedTomcat] path="" :jsp: init
[EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8088
[EmbeddedTomcat] Started
这表示Integrated Stack (fast) Tomcat support已经启动成功。
[Tomcat] Initializing
[Tomcat] Initialized
[Tomcat] Starting
[Tomcat] Testing if Tomcat is present....
[Tomcat] OK
[Tomcat] Starting Tomcat...
[Tomcat] Starting tomcat. Check logs/tomcat.log for error messages
2000-11-21 08:26:02 - ContextManager: Adding context Ctx( /examples )
2000-11-21 08:26:02 - ContextManager: Adding context Ctx( /admin )
2000-11-21 08:26:02 - ContextManager: Adding context Ctx( )
2000-11-21 08:26:02 - ContextManager: Adding context Ctx( /test )
2000-11-21 08:26:04 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
[Tomcat] Started
这表示Stand-alone Stack Tomcat support已经启动。