JavaZOOM Web Site jChatBox homepage
  Software
  
Installation
  
Configuration
  
Administration
  
User guide
  
API & Extension
  
License

<< back
- Configuration -
Level : Basic  
Once you've installed jChatBox you could run it without any additional configuration. The default configuration will be loaded from $JCHATBOX_HOME/WEB-INF/conf folder. All logs and backup file will be stored in this folder too.

Level : Advanced  
However, for production you might want to modify the default configuration. To do so you have to setup three parameters only before launching jChatBox : LOGFOLDER (path for auto-created log files), BACKUPFILE (file where chatrooms are stored) and configfile (path to jchatbox.xml file).

1 - LOGFOLDER :
Edit jchatbox.xml from conf folder. In the LOGFOLDER tag, modify : AUTOCONF value with your absolute path to logs folder (e.g. d:/production/jchatbox/logs).
DO NOT add "/" or "\" at the end !
Note1 : jChatBox translates AUTOCONF value by $JCHATBOX_HOME/WEB-INF/conf folder.
Note2 : Use "/" as separator under Win32, Unix or Linux. Use ":" as separator under Mac.

2 - BACKUPFILE :
Edit jchatbox.xml from conf folder. In the BACKUPFILE tag, modify : AUTOCONF value with your absolute path to backup file (e.g. d:/production/jchatbox/backup.ser).
Note1 : jChatBox translates AUTOCONF value by $JCHATBOX_HOME/WEB-INF/conf folder.
Note2 : This file will be created automatically when SYSTEM user click on "Backup chatrooms" from administration GUI. Backup is also done when servlet engine stops.

3 - configfile :
Edit web.xml from in $JCHATBOX_HOME/WEB-INF folder and modify AUTOCONF value (in configfile init parameter) with the absolute path to jchatbox.xml file :
e.g. :
<init-param>
  <param-name>configfile</param-name>
  <param-value>
d:/production/jchatbox/conf/jchatbox.xml</param-value>
</init-param>

Note1 : jChatBox translates AUTOCONF value by $JCHATBOX_HOME/WEB-INF/conf/jchatbox.xml.
Note2 : Use "/" as separator under Win32, Unix or Linux. Use ":" as separator under Mac.

configfile parameter is the most important. If it's wrong, jChatBox won't start correctly.

[News] [Applets] [Servlets] [Services] [Projects] [Links] [About]

Copyright © JavaZOOM 1999-2003

Java is a trademark of Sun Microsystems,Inc. All other company and/or product names are the property of their respective owners.