<Server>
<!-- it's the server name used by the server. You can change to match your server name -->
<ServerIP>192.168.10.3</ServerIP>
<!-- By default GameServer listens on port 8001 for connections, but you can change this to any other value if your firewall is filtering this particular port number. Please remember that port values below 1024 are only allowed by the Flash Player version 7.0.19.0 or later -->
<ServerPort>8002</ServerPort>
<ServerName>WorldServer_2</ServerName>
<!-- Server language:zh-cn, zh-tw, en -->
<Language>zh-cn</Language>
<!-- operate system socket parameter: blocklog, windows xp: 20, linux: 50 -->
<Backlog>50</Backlog>
<!-- bytes -->
<ReceiveBufferSize>102400</ReceiveBufferSize>
<!-- seconds -->
<ConnTimeout>600</ConnTimeout>
<!-- Resouce file name -->
<ResouceFile>information.xml</ResouceFile>
<!-- The time (milliseconds) is expressed in seconds and it represents the maximum time allowed for an idle client. After that time, idle users are automatically disconnected by the server -->
<MaxUserIdleTime>600000</MaxUserIdleTime>
<!--
The <OutQueueThreads> tag represents the number of Java worker threads used
A good rule to help you decide how many threads to assign is: (number of cpus / 2)
-->
<OutQueueThreads>1</OutQueueThreads>
<!-- Incoming queue max size -->
<InQueueSize>100</InQueueSize>
<!-- The maximum number of user variables that can be created by a single user. -1 = unlimited -->
<MaxUserVars>2</MaxUserVars>
<!-- The maximum size of each log file before a new log file is created, bytes. 20971520=20M -->
<LogMaxSize>20971520</LogMaxSize>
<!-- The maximum number of log files the server can create -->
<LogMaxFiles>10</LogMaxFiles>
<!--
Defines the importance level of the Server messages outputted in the log files.
There are 4 levels of logging depending on the importance of the log message, some of them are just internal notifications useful for debugging and others are very important messages that indicate application warnings and errors.
The levels are: DEBUG, WARNING, INFO, ERROR
By default the FileLoggingLevel is set to WARNING to help administrators find misbehaviours in the server, bad client requests etc
-->
<FileLoggingLevel>DEBUG</FileLoggingLevel>
<!--
Same as above but log messages are redirected to the operating system console.
By default the console logger shows "INFO" or higher level messages.
By changing this value to a lower importance level like "FINE" you can debug your applications with more details for each server action.
We reccomend to use "INFO" levels for production servers and lower values for local testing/debugging
-->
<ConsoleLoggingLevel>DEBUG</ConsoleLoggingLevel>
<!-- true or false -->
<DisabledConsoleLogging>false</DisabledConsoleLogging>
<FileLogName>gameserver</FileLogName>
<!-- The server administrator login name -->
<AdminLogin>admin</AdminLogin>
<!--
The server administrator password. The password must be at least 6 characters long and we reccomend to use alphanumeric characters and numbers mixed together for better security.
NOTE: The password sent by the client Admin tool is always encrypted
-->
<AdminPassword>123456</AdminPassword>
<!-- load rdbms table data percentage(%100), very importance, please don't modify without gameserver administrator -->
<FastDBLoadFactor>50</FastDBLoadFactor>
<POJOPackageName>com.handjoys.pojo</POJOPackageName>
<MaxRoom>100</MaxRoom>
<!-- max online user count of one room -->
<MaxRoomUser>20</MaxRoomUser>
<!-- max sequence of the game credit -->
<MaxNumberOfGBB>10</MaxNumberOfGBB>
<!-- game credit server -->
<GBBServer>192.168.10.3:5000</GBBServer>
<!-- refresh the game top credit interval (min) -->
<GameTopRefreshTime>720</GameTopRefreshTime>
<!--
For higher admin security you can restrict the IP addresses allowed to connect as administrators.
You can specify any number of allowed addresses.
If you wish to bypass this restriction just use <AllowedAddress>*.*.*.*</AllowedAddress> to allow any IP address to log in as administrator
-->
<AdminAllowedAddresses>
<AllowedAddress>127.0.0.1</AllowedAddress>
</AdminAllowedAddresses>
<!-- Configuration of the SMTP server used for sending emails from extensions. -->
<Mailer>
<MailHost>smtp.handjoys.com</MailHost>
<MailUser>handjoys</MailUser>
<MailPass>handjoys</MailPass>
<MailPort>9</MailPort>
</Mailer>
<!-- startup modules -->
<Modules>
<Module>com.handjoys.startup.LicenseStartup</Module>
<Module>com.handjoys.startup.RDBStartup</Module>
<Module>com.handjoys.startup.ResourceStartup</Module>
<Module>com.handjoys.startup.FastDBStartup</Module>
<Module>com.handjoys.startup.AccountServerStartup</Module>
</Modules>
<!-- game components confiuration -->
<GC>
<!-- Client, World Server communication message code: number -->
<!-- Local: Key word, Single Process -->
<Bean>
<MsgCode>50000</MsgCode>
<MsgDesc>Console</MsgDesc>
<Class>com.handjoys.console.Console</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>11000</MsgCode>
<MsgDesc>PlayerSpirteController</MsgDesc>
<Class>com.handjoys.room.PlayerSpirteController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>12000</MsgCode>
<MsgDesc>ChatService</MsgDesc>
<Class>com.handjoys.chat.ChatService</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>20000</MsgCode>
<MsgDesc>SpriteControl</MsgDesc>
<Class>com.handjoys.room.SpriteController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>21000</MsgCode>
<MsgDesc>BuddyList</MsgDesc>
<Class>com.handjoys.room.BuddyList</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>22000</MsgCode>
<MsgDesc>SpriteCommerceController</MsgDesc>
<Class>com.handjoys.room.SpriteCommerceController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>30000</MsgCode>
<MsgDesc>game</MsgDesc>
<Class>com.handjoys.room.GameController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>31000</MsgCode>
<MsgDesc>MultiGameService</MsgDesc>
<Class>com.handjoys.games.MultiGameService</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>40000</MsgCode>
<MsgDesc>RoomController</MsgDesc>
<Class>com.handjoys.room.RoomController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>41000</MsgCode>
<MsgDesc>SpriteComplaint</MsgDesc>
<Class>com.handjoys.complaint.SpriteComplaint</Class>
<RServer>Local</RServer>
</Bean>
</GC>
<!-- RServer: Reference Servers -->
<RServer>
<Server>
<Name>AccountServer</Name>
<Address>192.168.10.3:8000</Address>
</Server>
<Server>
<Name>WorldServer_1</Name>
<Address>192.168.10.3:8001</Address>
</Server>
<Server>
<Name>WorldServer_2</Name>
<Address>192.168.10.3:8002</Address>
</Server>
</RServer>
<!-- in memory database loading tables -->
<FastDB>
<Static>
<Entity>
<Name>Room</Name>
</Entity>
<Entity>
<Name>RoomButton</Name>
</Entity>
<Entity>
<Name>ExistSpeak</Name>
</Entity>
<Entity>
<Name>ServerInfo</Name>
</Entity>
<Entity>
<Name>GameInfo</Name>
</Entity>
<Entity>
<Name>GameKindInfo</Name>
</Entity>
<Entity>
<Name>Material</Name>
</Entity>
<Entity>
<Name>MaterialAttribute</Name>
</Entity>
<Entity>
<Name>GameCreditPop</Name>
</Entity>
<Entity>
<Name>SpriteCate</Name>
</Entity>
<Entity>
<Name>FilterSpeak</Name>
</Entity>
<Entity>
<Name>PostCard</Name>
</Entity>
</Static>
<Dynamic>
<Entity>
<Name>Buddy</Name>
<RServer>WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>IgnoreList</Name>
<RServer>WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>Player</Name>
<RServer>AccountServer</RServer>
</Entity>
<Entity>
<Name>AccountInfo</Name>
<RServer>AccountServer</RServer>
</Entity>
<Entity>
<Name>Sprite</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>SpriteHome</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>SpriteMaterial</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
</Dynamic>
<Smart>
<Entity>
<Name>SpriteMessage</Name>
<Sql>WHERE readFlag='0'</Sql>
<RServer>WorldServer</RServer>
</Entity>
</Smart>
</FastDB>
<!-- RDBMS configuration -->
<RDBMS>
<Driver>com.handjoys.mysql.jdbc.Driver</Driver>
<Url>jdbc:mysql://192.168.10.3:3306/babygame</Url>
<User>test</User>
<Pass>test</Pass>
<!-- pool size must large 2 -->
<PoolSize>2</PoolSize>
</RDBMS>
</Server>