A.2. 附录:缺省的apusic.conf配置文件
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<SERVICE
CLASS="com.apusic.util.ThreadPoolService"
NAME="apusic:service=ThreadPool,name=default"
>
<ATTRIBUTE NAME="MinSpareThreads" VALUE="5"/>
<ATTRIBUTE NAME="MaxSpareThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxThreads" VALUE="-1"/>
<ATTRIBUTE NAME="MaxQueueSize" VALUE="500"/>
<ATTRIBUTE NAME="IdleTimeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.util.ThreadPoolService"
NAME="apusic:service=ThreadPool,name=MuxHandler"
>
<ATTRIBUTE NAME="MinSpareThreads" VALUE="0"/>
<ATTRIBUTE NAME="MaxSpareThreads" VALUE="10"/>
<ATTRIBUTE NAME="MaxThreads" VALUE="10"/>
<ATTRIBUTE NAME="MaxQueueSize" VALUE="500"/>
<ATTRIBUTE NAME="IdleTimeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.util.ThreadPoolService"
NAME="apusic:service=ThreadPool,name=HTTPHandler"
>
<ATTRIBUTE NAME="MinSpareThreads" VALUE="5"/>
<ATTRIBUTE NAME="MaxSpareThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxQueueSize" VALUE="500"/>
<ATTRIBUTE NAME="IdleTimeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.util.ThreadPoolService"
NAME="apusic:service=ThreadPool,name=JMSHandler"
>
<ATTRIBUTE NAME="MinSpareThreads" VALUE="0"/>
<ATTRIBUTE NAME="MaxSpareThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxQueueSize" VALUE="500"/>
<ATTRIBUTE NAME="IdleTimeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.util.ThreadPoolService"
NAME="apusic:service=ThreadPool,name=ORBWorker"
>
<ATTRIBUTE NAME="MinSpareThreads" VALUE="5"/>
<ATTRIBUTE NAME="MaxSpareThreads" VALUE="30"/>
<ATTRIBUTE NAME="MaxThreads" VALUE="150"/>
<ATTRIBUTE NAME="MaxQueueSize" VALUE="500"/>
<ATTRIBUTE NAME="IdleTimeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.net.Muxer"
>
<ATTRIBUTE NAME="Port" VALUE="6888"/>
<ATTRIBUTE NAME="Backlog" VALUE="50"/>
<ATTRIBUTE NAME="Timeout" VALUE="300"/>
<ATTRIBUTE NAME="MaxWaitingClients" VALUE="200"/>
<ATTRIBUTE NAME="WaitingClientTimeout" VALUE="5"/>
<ATTRIBUTE NAME="SSLEnabled" VALUE="True"/>
<ATTRIBUTE NAME="SecurePort" VALUE="6889"/>
<ATTRIBUTE NAME="KeyStore" VALUE="config/sslserver"/>
<ATTRIBUTE NAME="KeyPassword" VALUE="keypass"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.corba.ORBService"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.naming.NameService"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.transaction.TransactionService"
>
<ATTRIBUTE NAME="DefaultTimeout" VALUE="600"/>
<ATTRIBUTE NAME="EnableLog" VALUE="False"/>
<ATTRIBUTE NAME="RetryTimeout" VALUE="600"/>
<ATTRIBUTE NAME="RetryInterval" VALUE="60"/>
<ATTRIBUTE NAME="HeuristicDecision" VALUE="rollback"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.jdbc.JDBCService"
>
<ATTRIBUTE NAME="EnableActiveConnTrace" VALUE="False"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.security.SecurityService"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.jdbc.trace.JDBCTracerService"
>
<ATTRIBUTE NAME="StackTraceAllow" VALUE="False"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.connector.JCAService"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.ejb.EJBService"
>
<ATTRIBUTE NAME="SessionCacheSize" VALUE="1000"/>
<ATTRIBUTE NAME="EntityCacheSize" VALUE="1000"/>
<ATTRIBUTE NAME="SessionStoreDirectory" VALUE="store/ejb"/>
<ATTRIBUTE NAME="DefaultEntityPersistenceDataSource" VALUE="jdbc/sample"/>
<ATTRIBUTE NAME="DefaultMessageDrivenConnectionFactory" VALUE="jms/ConnectionFactory"/>
<ATTRIBUTE NAME="Cmp11Promotion" VALUE="True"/>
<ATTRIBUTE NAME="EnablePassByReference" VALUE="False"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.ejb.timer.EJBTimerService"
>
<ATTRIBUTE NAME="MaxRedeliveries" VALUE="1"/>
<ATTRIBUTE NAME="RedeliveryInterval" VALUE="5000"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.web.WebService"
>
<ATTRIBUTE NAME="MaxWaitingClients" VALUE="500"/>
<ATTRIBUTE NAME="WaitingClientTimeout" VALUE="5"/>
<ATTRIBUTE NAME="KeepAlive" VALUE="true"/>
<ATTRIBUTE NAME="KeepAliveTimeout" VALUE="15"/>
<ATTRIBUTE NAME="MaxKeepAliveRequests" VALUE="100"/>
<ATTRIBUTE NAME="MaxKeepAliveConnections" VALUE="300"/>
<ATTRIBUTE NAME="NumberSelectors" VALUE="1"/>
<ATTRIBUTE NAME="ServletReloadCheckInterval" VALUE="3"/>
<ATTRIBUTE NAME="EnableLog" VALUE="False"/>
<ATTRIBUTE NAME="LogFileName" VALUE="logs/access.log"/>
<ATTRIBUTE NAME="LogFileLimit" VALUE="1000000"/>
<ATTRIBUTE NAME="LogFileCount" VALUE="10"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.web.session.SessionService"
>
<ATTRIBUTE NAME="DefaultSessionTimeout" VALUE="3600"/>
<ATTRIBUTE NAME="MaxSessionsInCache" VALUE="1024"/>
<ATTRIBUTE NAME="SessionInvalidateCheckInterval" VALUE="60"/>
<ATTRIBUTE NAME="Distributable" VALUE="False"/>
<ATTRIBUTE NAME="Replicable" VALUE="False"/>
<ATTRIBUTE NAME="SessionStick" VALUE="False"/>
<ATTRIBUTE NAME="PersisteSession" VALUE="False"/>
<ATTRIBUTE NAME="DestorySessionOnApplicationStop" VALUE="True"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.web.session.FileSessionStoreService"
>
<ATTRIBUTE NAME="Directory" VALUE="store/http_sessions"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.web.http.mux.MUXEndpoint"
NAME="Endpoint:type=mux,service=httpd"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.web.http.acp.ACPEndpoint"
NAME="Endpoint:type=acp,service=httpd"
>
<ATTRIBUTE NAME="Timeout" VALUE="300"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.jms.store.file.FileMessageStoreProvider"
>
<ATTRIBUTE NAME="StoreDirectory" VALUE="store/jms"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.jms.server.JMSServer"
>
<ATTRIBUTE NAME="RoutingRedeliveryInterval" VALUE="60"/>
<ATTRIBUTE NAME="RoutingMaxRedeliveryCount" VALUE="100"/>
<ATTRIBUTE NAME="TransactedDelivery" VALUE="False"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.jms.server.JMSRegistry"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.deploy.runtime.J2EEDeployer"
>
<ATTRIBUTE NAME="EnableAutoDeployment" VALUE="True"/>
<ATTRIBUTE NAME="WatchedDirectories" VALUE="applications"/>
<ATTRIBUTE NAME="UploadDirectory" VALUE="upload"/>
</SERVICE>
<SERVICE
CLASS="com.apusic.jmx.adaptors.rmi.RMIAdaptorService"
NAME="Adaptor:type=rmi"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.tools.admin.AdminService"
>
</SERVICE>
<SERVICE
CLASS="com.apusic.util.ClassLoaderViewer"
>
</SERVICE>
</CONFIG>