001 <quickserver>
002   <name>EchoServer v 1.2</name>
003   <port>4123</port>
004   <bind-address>0.0.0.0</bind-address>
005   <client-command-handler>
006     echoserver.EchoCommandHandler
007   </client-command-handler>  
008   <authenticator>
009     echoserver.EchoServerQuickAuthenticator
010   </authenticator>
011   
012   <!--
013   <authenticator>
014     echoserver.EchoServerAuthenticatorDBBased
015   </authenticator>
016   -->
017   <timeout>4</timeout>
018   <timeout-msg>-ERR Timeout</timeout-msg>
019   <max-auth-try>5</max-auth-try>
020   <max-auth-try-msg>-ERR Max Auth Try Reached</max-auth-try-msg>
021   <max-connection>-1</max-connection>
022   <max-connection-msg>Server Busy\nMax Connection Reached</max-connection-msg>
023 
024   <console-logging-level>INFO</console-logging-level>
025   <console-logging-formatter>
026     org.quickserver.util.logging.SimpleConsoleFormatter
027   </console-logging-formatter>
028 
029   <object-pool>
030     <max-active>-1</max-active>
031     <max-idle>25</max-idle>
032   </object-pool>
033 
034   <communication-logging>
035     <enable>true</enable>
036   </communication-logging>
037 
038   <qsadmin-server>
039     <name>QSAdminServer v 1.2</name>
040     <port>4124</port>
041     <bind-address>127.0.0.1</bind-address>
042     <client-command-handler>
043       org.quickserver.net.qsadmin.CommandHandler
044     </client-command-handler>
045     <authenticator>
046       org.quickserver.net.qsadmin.Authenticator
047     </authenticator>
048     <timeout>4</timeout>
049     <timeout-msg>-ERR Timeout</timeout-msg>
050     <max-auth-try>5</max-auth-try>
051     <max-auth-try-msg>-ERR Max Auth Try Reached</max-auth-try-msg>
052     <max-connection>1</max-connection>
053     <max-connection-msg>-ERR Server Busy. Max Connection Reached</max-connection-msg>
054     <console-logging-level>INFO</console-logging-level>
055     <object-pool>
056       <max-active>-1</max-active>
057       <max-idle>15</max-idle>
058     </object-pool>
059 
060     <command-shell>
061       <enable>true</enable>
062     </command-shell>
063 
064     <communication-logging>
065       <enable>false</enable>
066     </communication-logging>
067 
068     <access-constraint>
069       <ip-filter> 
070       <enable>false</enable>
071       <allow-access>true</allow-access>
072       <!-- <allow-access>false<allow-access> -->
073       <ip-collection>
074         <client-ip-address>127.0.0.1</client-ip-address> 
075         <!--<client-ip-address>192.168.1.100</client-ip-address> -->
076       </ip-collection>
077       </ip-filter> 
078     </access-constraint> 
079   </qsadmin-server>
080 
081   <db-object-pool>
082     <database-connection-set>
083       <database-connection>
084         <id>TestDB1</id>
085         <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
086         <url>jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\\QuickServer\\examples\\db\\echoAuth.mdb</url>
087         <username></username>
088         <password></password>
089       </database-connection>
090     </database-connection-set>
091     <db-pool-util>echoserver.DBPoolUtil</db-pool-util>
092   </db-object-pool>
093 
094   <application-configuration>
095   <!--
096     <property>
097       <property-name>ServerHook-ObjectCleaner-Time-Minute</property-name>
098       <property-value>5</property-value>
099     </property>
100     <property>
101       <property-name>APP_PARAM1</property-name>
102       <property-value>test value</property-value>
103     </property>
104     <property>
105       <property-name>APP_PARAM2</property-name>
106       <property-value>test value2</property-value>
107     </property>
108   -->
109   </application-configuration>
110 
111 
112   <!--
113   <security-manager-class>
114     org.quickserver.net.security.AccessManager
115   </security-manager-class>
116   -->
117 
118   <access-constraint>
119     <ip-filter> 
120       <enable>false</enable>
121       <allow-access>false</allow-access>
122       <ip-collection>
123       <client-ip-address>127.0.0.1</client-ip-address> 
124       </ip-collection>
125     </ip-filter> 
126   </access-constraint> 
127 
128   <application-jar-path>../dist/EchoServer.jar</application-jar-path>
129 
130   <server-hooks>
131     <class-name>echoserver.SetupLoggingHook</class-name>
132     <!--<class-name>org.quickserver.net.server.ObjectCleaner</class-name>-->
133   </server-hooks>
134 </quickserver>