一、产品下载与安装
glassfish下载地址:https://download.oracle.com/glassfish/5.0.1/release/index.html
下载后解压即完成安装,主要目录说明:
bin目录:为asadmin命令所在目录。
glassfish为主目录:
glassfish\bin目录为命令目录。
glassfish\docs 目录为快速使用手册。
glassfish\domains为默认域目录。
二、产品启动与停止
1. 通过asadmin create-domain命令建域,输入默认用户名与密码。
D:\glassfish5\bin>asadmin create-domain aaa
Enter admin user name [Enter to accept default "admin" / no password]>admin
Enter the admin password [Enter to accept default of no password]>
Enter the admin password again>
Default port 4848 for Admin is in use. Using 51364
Default port 8080 for HTTP Instance is in use. Using 51365
Default port 7676 for JMS is in use. Using 51366
Default port 3700 for IIOP is in use. Using 51367
Default port 8181 for HTTP_SSL is in use. Using 51368
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Default port 8686 for JMX_ADMIN is in use. Using 51369
Using default port 6666 for OSGI_SHELL.
Using default port 9009 for JAVA_DEBUGGER.
Distinguished Name of the self-signed X.509 Server Certificate is:
[CN=realw,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US]
Distinguished Name of the self-signed X.509 Server Certificate is:
[CN=realw-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US]
Domain aaa created.
Domain aaa admin port is 51364.
Domain aaa admin user is "admin".
Command create-domain executed successfully.
2. 通过asadmin start-domain命令启动域
D:\glassfish5\bin>asadmin start-domain aaa
Waiting for aaa to start …
Successfully started the domain : aaa
domain Location: D:\glassfish5\glassfish\domains\aaa
Log File: D:\glassfish5\glassfish\domains\aaa\logs\server.log
Admin Port: 4848
Command start-domain executed successfully.
3. 通过asadmin stop-domain命令停止域
D:\glassfish5\bin>asadmin stop-domain aaa
Waiting for the domain to stop .
Command stop-domain executed successfully.
三、控制台的使用
前提:domain已经启动。
-
访问控制台:http://IP地址:4848(默认控制台端口为4848),输入建域时的用户名密码登录。
-
登录控制台后左边树菜单如下,常用配置部署应用如下图:
-
配置数据源如下, _TimerPool是为EJB timer使用,是glassfish的典型特征。
-
JVM等主要配置项如下:
四、glassfish的domain主配置文件domain.xml概要说明,基本与控制台一一对应。
<!-- 应用和日志目录 -->
<domain application-root="${com.sun.aas.instanceRoot}/applications" version="5" log-root="${com.sun.aas.instanceRoot}/logs">
<!-- 安全配置 --><security-configurations><authentication-service default="true" name="adminAuth" use-password-credential="true"><security-provider provider-name="adminSpc" name="spcrealm" type="LoginModule"><login-module-config control-flag="sufficient" module-class="com.sun.enterprise.admin.util.AdminLoginModule" name="adminSpecialLM"><property name="config" value="server-config"></property><property name="auth-realm" value="admin-realm"></property></login-module-config></security-provider><security-provider provider-name="adminFile" name="filerealm" type="LoginModule"><login-module-config control-flag="sufficient" module-class="com.sun.enterprise.security.auth.login.FileLoginModule" name="adminFileLM"><property name="config" value="server-config"></property><property name="auth-realm" value="admin-realm"></property></login-module-config></security-provider></authentication-service><authorization-service default="true" name="authorizationService"><security-provider provider-name="simpleAuthorizationProvider" name="simpleAuthorization" type="Simple"><authorization-provider-config name="simpleAuthorizationProviderConfig" support-policy-deploy="false"></authorization-provider-config></security-provider></authorization-service></security-configurations><managed-job-config></managed-job-config><system-applications><application context-root="" object-type="system-admin" directory-deployed="true" name="__admingui" location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui"><module name="__admingui"><engine sniffer="web"></engine><engine sniffer="security"></engine></module></application></system-applications><!-- 数据源配置 --><resources><jdbc-resource pool-name="__TimerPool" object-type="system-all" jndi-name="jdbc/__TimerPool"></jdbc-resource><jdbc-resource pool-name="DerbyPool" object-type="system-all-req" jndi-name="jdbc/__default"></jdbc-resource><jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" name="__TimerPool" res-type="javax.sql.XADataSource"><property name="databaseName" value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer"></property><property name="connectionAttributes" value=";create=true"></property></jdbc-connection-pool><jdbc-connection-pool is-isolation-level-guaranteed="false" datasource-classname="org.apache.derby.jdbc.ClientDataSource" name="DerbyPool" res-type="javax.sql.DataSource"><property name="PortNumber" value="1527"></property><property name="Password" value="APP"></property><property name="User" value="APP"></property><property name="serverName" value="localhost"></property><property name="DatabaseName" value="sun-appserv-samples"></property><property name="connectionAttributes" value=";create=true"></property></jdbc-connection-pool><connector-connection-pool max-pool-size="250" resource-adapter-name="jmsra" steady-pool-size="1" name="jms/__defaultConnectionFactory-Connection-Pool" connection-definition-name="javax.jms.ConnectionFactory"></connector-connection-pool><connector-resource pool-name="jms/__defaultConnectionFactory-Connection-Pool" object-type="system-all-req" jndi-name="jms/__defaultConnectionFactory"></connector-resource><managed-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedExecutorService"></managed-executor-service><managed-scheduled-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedScheduledExecutorService"></managed-scheduled-executor-service><context-service object-type="system-all" jndi-name="concurrent/__defaultContextService"></context-service><managed-thread-factory object-type="system-all" jndi-name="concurrent/__defaultManagedThreadFactory"></managed-thread-factory></resources><servers><server config-ref="server-config" name="server"><application-ref ref="__admingui" virtual-servers="__asadmin"></application-ref><resource-ref ref="jdbc/__TimerPool"></resource-ref><resource-ref ref="jdbc/__default"></resource-ref><resource-ref ref="jms/__defaultConnectionFactory"></resource-ref><resource-ref ref="concurrent/__defaultManagedExecutorService"></resource-ref><resource-ref ref="concurrent/__defaultManagedScheduledExecutorService"></resource-ref><resource-ref ref="concurrent/__defaultContextService"></resource-ref><resource-ref ref="concurrent/__defaultManagedThreadFactory"></resource-ref></server></servers><nodes><node name="localhost-aaa" install-dir="${com.sun.aas.productRoot}" type="CONFIG" node-host="localhost"></node></nodes><configs><!-- 端口、虚拟主机、JMX配置 --><config name="server-config"><system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="7676"></system-property><http-service><access-log></access-log><virtual-server network-listeners="http-listener-1,http-listener-2" id="server"></virtual-server><virtual-server network-listeners="admin-listener" id="__asadmin"></virtual-server></http-service><iiop-service><orb use-thread-pool-ids="thread-pool-1"></orb><iiop-listener address="0.0.0.0" port="3700" lazy-init="true" id="orb-listener-1"></iiop-listener><iiop-listener address="0.0.0.0" port="3820" id="SSL" security-enabled="true"><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl></iiop-listener><iiop-listener address="0.0.0.0" port="3920" id="SSL_MUTUALAUTH" security-enabled="true"><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"></ssl></iiop-listener></iiop-service><admin-service system-jmx-connector-name="system" type="das-and-server"><jmx-connector address="0.0.0.0" port="8686" name="system" auth-realm-name="admin-realm" security-enabled="false"></jmx-connector><property name="adminConsoleContextRoot" value="/admin"></property><property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"></property><property name="ipsRoot" value="${com.sun.aas.installRoot}/.."></property><das-config></das-config></admin-service><connector-service></connector-service><transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"></transaction-service><batch-runtime-configuration></batch-runtime-configuration><jms-service default-jms-host="default_JMS_host" type="EMBEDDED"><jms-host port="${JMS_PROVIDER_PORT}" host="localhost" name="default_JMS_host"></jms-host></jms-service><web-container><session-config><session-manager><store-properties></store-properties><manager-properties></manager-properties></session-manager><session-properties></session-properties></session-config></web-container><ejb-container><ejb-timer-service></ejb-timer-service></ejb-container><rest-config></rest-config><diagnostic-service></diagnostic-service><security-service><auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm"><property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"></property><property name="jaas-context" value="fileRealm"></property></auth-realm><auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file"><property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"></property><property name="jaas-context" value="fileRealm"></property></auth-realm><auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"></auth-realm><jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl"><property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"></property></jacc-provider><jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"></jacc-provider><audit-module classname="com.sun.enterprise.security.ee.Audit" name="default"><property name="auditOn" value="false"></property></audit-module><message-security-config auth-layer="SOAP"><provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="dynamic.username.password" value="false"></property><property name="debug" value="false"></property></provider-config><provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="dynamic.username.password" value="false"></property><property name="debug" value="false"></property><property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property></provider-config><provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="debug" value="false"></property></provider-config><provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="debug" value="false"></property><property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property></provider-config></message-security-config><message-security-config auth-layer="HttpServlet"><provider-config provider-type="server" provider-id="GFConsoleAuthModule" class-name="org.glassfish.admingui.common.security.AdminConsoleAuthModule"><request-policy auth-source="sender"></request-policy><response-policy></response-policy><property name="loginPage" value="/login.jsf"></property><property name="loginErrorPage" value="/loginError.jsf"></property></provider-config></message-security-config><property name="default-digest-algorithm" value="SHA-256"></property></security-service><!-- JVM参数、-D参数配置 --><java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009" system-classpath=""><jvm-options>-XX:MaxPermSize=192m</jvm-options><jvm-options>-client</jvm-options><jvm-options>-Djava.awt.headless=true</jvm-options><jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options><jvm-options>-Djdk.tls.rejectClientInitiatedRenegotiation=true</jvm-options><jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options><jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder</jvm-options><jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options><jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options><jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options><jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options><jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options><jvm-options>-Xmx512m</jvm-options><jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options><jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options><jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options><jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options><jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options><jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options><jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall</jvm-options><jvm-options>-Dosgi.shell.telnet.port=6666</jvm-options><jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options><jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options><jvm-options>-Dgosh.args=--nointeractive</jvm-options><jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options><jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options><jvm-options>-Dfelix.fileinstall.log.level=2</jvm-options><jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options><jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options><jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options><jvm-options>-XX:NewRatio=2</jvm-options><jvm-options>-Dcom.ctc.wstx.returnNullForDefaultNamespace=true</jvm-options></java-config><network-config><protocols><protocol name="http-listener-1"><http max-connections="250" default-virtual-server="server"><file-cache></file-cache></http></protocol><protocol name="http-listener-2" security-enabled="true"><http max-connections="250" default-virtual-server="server"><file-cache></file-cache></http><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl></protocol><protocol name="admin-listener"><http encoded-slash-enabled="true" max-connections="250" default-virtual-server="__asadmin"><file-cache></file-cache></http></protocol></protocols><network-listeners><network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener><network-listener protocol="http-listener-2" port="8181" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"></network-listener><network-listener protocol="admin-listener" port="4848" name="admin-listener" thread-pool="admin-thread-pool" transport="tcp"></network-listener></network-listeners><transports><transport name="tcp"></transport></transports></network-config><thread-pools><thread-pool name="admin-thread-pool" max-thread-pool-size="50" max-queue-size="256"></thread-pool><thread-pool name="http-thread-pool"></thread-pool><thread-pool name="thread-pool-1" max-thread-pool-size="200"></thread-pool></thread-pools><group-management-service><failure-detection></failure-detection></group-management-service><monitoring-service><module-monitoring-levels></module-monitoring-levels></monitoring-service><availability-service></availability-service></config><config name="default-config"><http-service><access-log></access-log><virtual-server network-listeners="http-listener-1, http-listener-2" id="server"><property name="default-web-xml" value="${com.sun.aas.instanceRoot}/config/default-web.xml"></property></virtual-server><virtual-server network-listeners="admin-listener" id="__asadmin"></virtual-server></http-service><iiop-service><orb use-thread-pool-ids="thread-pool-1"></orb><iiop-listener address="0.0.0.0" port="${IIOP_LISTENER_PORT}" id="orb-listener-1"></iiop-listener><iiop-listener address="0.0.0.0" port="${IIOP_SSL_LISTENER_PORT}" id="SSL" security-enabled="true"><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl></iiop-listener><iiop-listener address="0.0.0.0" port="${IIOP_SSL_MUTUALAUTH_PORT}" id="SSL_MUTUALAUTH" security-enabled="true"><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"></ssl></iiop-listener></iiop-service><admin-service system-jmx-connector-name="system"><jmx-connector address="0.0.0.0" port="${JMX_SYSTEM_CONNECTOR_PORT}" name="system" auth-realm-name="admin-realm" security-enabled="false"></jmx-connector><property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"></property><das-config></das-config></admin-service><connector-service></connector-service><web-container><session-config><session-manager><manager-properties></manager-properties><store-properties></store-properties></session-manager><session-properties></session-properties></session-config></web-container><ejb-container><ejb-timer-service></ejb-timer-service></ejb-container><mdb-container></mdb-container><jms-service addresslist-behavior="priority" default-jms-host="default_JMS_host" type="EMBEDDED"><jms-host port="${JMS_PROVIDER_PORT}" name="default_JMS_host" host="localhost"></jms-host></jms-service><log-service file="${com.sun.aas.instanceRoot}/logs/server.log" log-rotation-limit-in-bytes="2000000"><module-log-levels></module-log-levels></log-service><security-service><auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm"><property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"></property><property name="jaas-context" value="fileRealm"></property></auth-realm><auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file"><property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"></property><property name="jaas-context" value="fileRealm"></property></auth-realm><auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"></auth-realm><jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl"><property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"></property></jacc-provider><jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"></jacc-provider><audit-module classname="com.sun.enterprise.security.ee.Audit" name="default"><property name="auditOn" value="false"></property></audit-module><message-security-config auth-layer="SOAP"><provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="dynamic.username.password" value="false"></property><property name="debug" value="false"></property></provider-config><provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="dynamic.username.password" value="false"></property><property name="debug" value="false"></property><property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property></provider-config><provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="debug" value="false"></property></provider-config><provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"><request-policy auth-source="content"></request-policy><response-policy auth-source="content"></response-policy><property name="encryption.key.alias" value="s1as"></property><property name="signature.key.alias" value="s1as"></property><property name="debug" value="false"></property><property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property></provider-config></message-security-config></security-service><transaction-service automatic-recovery="true" tx-log-dir="${com.sun.aas.instanceRoot}/logs"></transaction-service><diagnostic-service></diagnostic-service><java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUGGER_PORT}" java-home="C:\JDK11" system-classpath=""><jvm-options>-XX:MaxPermSize=192m</jvm-options><jvm-options>-server</jvm-options><jvm-options>-Djava.awt.headless=true</jvm-options><jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options><jvm-options>-Djdk.tls.rejectClientInitiatedRenegotiation=true</jvm-options><jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options><jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options><jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options><jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options><jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options><jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options><jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options><jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options><jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options><jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options><jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options><jvm-options>-XX:NewRatio=2</jvm-options><jvm-options>-Xmx512m</jvm-options><jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall</jvm-options><jvm-options>-Dosgi.shell.telnet.port=${OSGI_SHELL_TELNET_PORT}</jvm-options><jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options><jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options><jvm-options>-Dgosh.args=--noshutdown -c noop=true</jvm-options><jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options><jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options><jvm-options>-Dfelix.fileinstall.log.level=3</jvm-options><jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options><jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options><jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options></java-config><availability-service><web-container-availability></web-container-availability><ejb-container-availability sfsb-store-pool-name="jdbc/hastore"></ejb-container-availability><jms-availability></jms-availability></availability-service><network-config><protocols><protocol name="http-listener-1"><http default-virtual-server="server"><file-cache></file-cache></http></protocol><protocol name="http-listener-2" security-enabled="true"><http default-virtual-server="server"><file-cache></file-cache></http><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl></protocol><protocol name="admin-listener"><http max-connections="250" default-virtual-server="__asadmin"><file-cache></file-cache></http></protocol><protocol name="sec-admin-listener" security-enabled="true"><http encoded-slash-enabled="true" default-virtual-server="__asadmin"><file-cache></file-cache></http><ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" client-auth="want" cert-nickname="glassfish-instance" renegotiate-on-client-auth-want="false"></ssl></protocol><protocol name="admin-http-redirect"><http-redirect secure="true"></http-redirect></protocol><protocol name="pu-protocol"><port-unification><protocol-finder protocol="sec-admin-listener" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="http-finder"></protocol-finder><protocol-finder protocol="admin-http-redirect" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="admin-http-redirect"></protocol-finder></port-unification></protocol></protocols><network-listeners><network-listener protocol="http-listener-1" port="${HTTP_LISTENER_PORT}" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener><network-listener protocol="http-listener-2" port="${HTTP_SSL_LISTENER_PORT}" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"></network-listener><network-listener protocol="pu-protocol" port="${ASADMIN_LISTENER_PORT}" name="admin-listener" thread-pool="http-thread-pool" transport="tcp"></network-listener></network-listeners><transports><transport name="tcp"></transport></transports></network-config><thread-pools><thread-pool name="http-thread-pool"></thread-pool><thread-pool name="thread-pool-1" max-thread-pool-size="200"></thread-pool><thread-pool name="admin-thread-pool" max-queue-size="256" max-thread-pool-size="50"></thread-pool></thread-pools><group-management-service><failure-detection></failure-detection></group-management-service><system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="27676"></system-property><system-property name="ASADMIN_LISTENER_PORT" value="24848"></system-property><system-property name="HTTP_LISTENER_PORT" value="28080"></system-property><system-property name="HTTP_SSL_LISTENER_PORT" value="28181"></system-property><system-property name="IIOP_LISTENER_PORT" value="23700"></system-property><system-property name="IIOP_SSL_LISTENER_PORT" value="23820"></system-property><system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="23920"></system-property><system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="28686"></system-property><system-property name="OSGI_SHELL_TELNET_PORT" value="26666"></system-property><system-property name="JAVA_DEBUGGER_PORT" value="29009"></system-property><monitoring-service><module-monitoring-levels></module-monitoring-levels></monitoring-service></config></configs><property name="administrative.domain.name" value="aaa"></property><secure-admin special-admin-indicator="2f849ce2-8642-4a1c-a882-3ec248199ab4"><secure-admin-principal dn="CN=realwangpu,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal><secure-admin-principal dn="CN=realwangpu-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal></secure-admin><clusters></clusters><applications></applications>
</domain>
查看全文
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.dgrt.cn/a/1703818.html
如若内容造成侵权/违法违规/事实不符,请联系一条长河网进行投诉反馈,一经查实,立即删除!
相关文章:
GlassFish的安装与使用
一、产品下载与安装glassfish下载地址:https://download.oracle.com/glassfish/5.0.1/release/index.html下载后解压即完成安装,主要目录说明:bin目录:为asadmin命令所在目录。glassfish为主目录:glassfish\bin目录为命……
【使用curl命令的技巧】
curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端的 URL 工具的意思。它的功能非常强大,命令行参数多达几十种。如果熟练的话,完全可以取代 Postman 这一类的图形界面工具。
![本文转自 curl 的用法指南
OpenSource: 总结……
科普一下: 关于C语言中的运算符优先级
1、最高级: 出现同级别运算符时的结合方向是从左往右(下面级别没写结合顺序时,默认是从左往右)。 )圆括号 [ ]下标运算符号 ->指向结构体成员运算符 .结构体成员运算符
2、第二级:!、~、、–、-、&am……
关于做嵌入式软件开发和普通桌面软件开发的区别问题
前几天别人问我做嵌入式开发和普通桌面开发有什么区别,当时回答的不全面,今天来总结一下:
嵌入式开发在宿主机上编辑、编译程序,在目标机运行测试程序,称为交叉开发;普通桌面软件开发在本机开发和调试;嵌入式开发需要根据目标机选……
Ubuntu 解决右键打开终端问题
1、打开虚拟机,按住ctrl alt T ,打开终端;
2、输入命令:sudo apt-get install nautilus-open-terminal
3、输入命令:sudo reboot 重启就OK了。…
VMware下Ubuntu 14.04详细安装教程
一、准备工作
准备镜像iso文件:
链接:https://pan.baidu.com/s/1HROe0EPNQMP5K2b4piFcfQ 提取码:e5rp
二、安装步骤:
双击桌面上已下载好的VMware Workstation: 点击创建虚拟机: 选择“自定义”选项&am……
在VMware 虚拟机下安装centos 6.x 系统详细教程
今天在安装Httpd服务器时,它需要在CentOS 6.x系统上进行安装,我之前没有用这个系统,所以本教程就以CentOS 6.5为例带大家熟悉一下在VMware上安装CentOS 6.x系统的操作,虚拟机选择VMware是因为它是比较常用的主流虚拟机,……
Linux系统下使用Socket进行本地进程间通信机制
About AF_LOCAL in Linux 一、Unix domain socket Unix domain socket 或者 IPC socket是一种终端,可以使同一台操作系统上的两个或多个进程进行数据通信。与管道相比,Unix domain sockets 既可以使用字节流,又可以使用数据队列,而……
C++语言发展史
20世纪60年代, 剑桥大学 Martin Richards为计算机软件人员在开发系统软件时,作为记述语言使用而开发了BCPL语言; 1970年, Bell实验室 Ken Thompson在继承BCPL语言的许多优点的基础上发明了实用的B语言; 1972年&#……
CentOS 7字符界面安装gcc
在Ubuntu中自带gcc编译器,而在CentOS 7字符界面中是没有的,我们需要使用以下命令进行安装: 在终端窗口中输入命令“yum install gcc”,如果你不想看到安装过程,就使用“yum -y install gcc”安装吧…
【面试题 高逼格利用 类实现加法】编写代码, 实现多线程数组求和.
编写代码, 实现多线程数组求和.关键1. 数组的初始化关键2. 奇偶的相加import java.util.Random;public class Thread_2533 {public static void mainString[] args) throws InterruptedException {// 记录开始时间long start System.currentTimeMillis);// 1. 给定一个很长的……
一个python训练
美国:28:麻省理工学院,斯坦福大学,哈佛大学,加州理工学院,芝加哥大学,普林斯顿大学,宾夕法尼亚大学,耶鲁大学,康奈尔大学,哥伦比亚大学,密歇根大学安娜堡分校,约翰霍普金斯大学,西北大学,加州大学伯克利分校,纽约大学,加州大学洛杉矶分校,杜克大学,卡内基梅隆大学,加州大学圣地……
Mybatis03学习笔记
目录 使用注解开发
设置事务自动提交
mybatis运行原理
注解CRUD
lombok使用(偷懒神器,大神都不建议使用)
复杂查询环境(多对一)
复杂查询环境(一对多)
动态sql环境搭建
动态sql常用标签……
编程日记2023/4/16 14:55:50
设置或取得c# NumericUpDown 编辑框值的方法,注意:不是Value值)
本人在C#开发中使用到了NumericUpDown控件,但是发现该控件不能直接控制显示值,经研究得到下面的解决办法
NumericUpDown由于是由多个控件组合而来的控件,其中包含一个类似TextBox的控件,若想取得或改变其中的值要使用如下方法
N……
编程日记2023/4/16 14:55:46
使用NPOI 技术 的SetColumnWidth 精确控制列宽不能成功的解决办法(C#)
在使用NPOI技术开发自动操作EXCEL软件时遇到不能精确设置列宽的问题。
如
ISheet sheet1 hssfworkbook.CreateSheet"Sheet1");
sheet1.SetColumnWidth0, 50 * 256); // 在EXCEL文档中实际列宽为49.29
sheet1.SetColumnWidth1, 100 * 256); // 在EXCEL文……
编程日记2023/4/16 14:55:46
Mysql 数据库zip版安装时basedir datadir 路径设置问题,避免转义符的影响
本人在开发Mysql数据库自动安装程序时遇到个很奇怪的问题,其中my.ini的basedir 的路径设置是下面这样的:
basedir d:\测试\test\mysql
但是在使用mysqld安装mysql服务时老是启动不了,报1067错误,后来查看window事件发现一个独特……
java stream sorted排序 考虑null值
项目里使用到排序, java里没有像C# 里的linq,只有stream,查找stream.sorted源码看到有个
Comparator.nullsLast
然后看了一下实现,果然是能够处理null值的排序,如:minPriceList.stream).sortedComparator.comparingl -> l.g……
spring @EnableConfigurationProperties 实现原理
查看DataSourceAutoConfiguration源码,发现如下代码: Configuration ConditionalOnClass{ DataSource.class, EmbeddedDatabaseType.class }) EnableConfigurationPropertiesDataSourceProperties.class) Import{ DataSourcePoolMetadataProvidersCon……
postman请求https网址没有响应,但是用浏览器有响应,解决办法
遇到个问题:同一个get请求的url,postman请求https网址没有响应,但是用浏览器有响应
url是https开头的,查看错误描述里有一个SSL的选项: 然后根据描述关掉这个选项: 然后就没问题了,能正常请求及……
java @Inherited注解的作用
看到很多注解都被Inherited进行了修饰,但是这个Inherited有什么作用呢?
查看Inherited代码描述:
Indicates that an annotation type is automatically inherited. If an Inherited meta-annotation is present on an annotation type decl……
编程日记2023/4/16 14:55:43