GlassFish是怎么启动的呢
1. GlassFish是怎么启动的呢
大家安装好GlassFish之后,可以在bin文件夹下面找到一个asadmin.bat文件,启动该批处理文件,服务器控制台就会启动,并且一直不停的等待我们的访问~~~
2. 这一切是怎么做到的呢
我们先看看这个bat文件写了些什么
@echo off REM REM Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. REM Use is subject to license terms. REM
setlocal call "D:/software/glassfish/config/asenv.bat" set Path=%AS_INSTALL%/bin;%AS_ICU_LIB%;%AS_NSS%;%PATH% "%AS_JAVA%/bin/java" -Dcom.sun.aas.instanceName=server -Djava.library.path="%AS_INSTALL%/bin";"%AS_ICU_LIB%";"%AS_NSS%" -Dcom.sun.aas.configRoot="%AS_CONFIG%" -Djava.endorsed.dirs="%AS_INSTALL%/lib/endorsed" -Dcom.sun.aas.processLauncher=SE -cp "%AS_DERBY_INSTALL%/lib/derby.jar";"%AS_INSTALL%/jbi/lib/jbi-admin-cli.jar";"%AS_INSTALL%/jbi/lib/jbi-admin-common.jar";"%AS_INSTALL%/lib";"%AS_INSTALL%/lib/appserv-se.jar";"%AS_INSTALL%/lib/comms-appserv-admin-cli.jar";"%AS_INSTALL%/lib/comms-appserv-rt.jar";"%AS_INSTALL%/lib/comms-appserv-api.jar";"%AS_INSTALL%/lib/appserv-rt.jar";"%AS_INSTALL%/lib/appserv-ext.jar";"%AS_INSTALL%/lib/javaee.jar";"%AS_INSTALL%/lib/admin-cli.jar";"%AS_INSTALL%/lib/appserv-admin.jar";"%AS_INSTALL%/lib/commons-launcher.jar";"%AS_INSTALL%/lib/install/applications/jmsra/imqjmsra.jar" -Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl com.sun.enterprise.cli.framework.CLIMain %* endlocal |
阿哈,原来奶奶的最后java了一个类。
那么为什么这个命令行启动之后会不停的接受操作信息呢????
我透露一点给大家,其实它是使用了multimode技术
至于这个技术是干什么的~~~哈哈 我会写在我的书里,欢迎大家去购买观看 哈哈哈哈