Project

General

Profile

Actions

Administration

Describes how to administrate the common tasks, for instance, update properties files, change logging level and etc.

User Guide - Batches/Daemon

See User Guide - Batches/Daemon

Monitor Log Files

All of the log files can be found in:

/var/ecwyconnector/info.log
/var/ecwyconnector/error.log
/var/ecwyconnector/debug.log

All of the log files for daemon/batches can be found in:

/var/ecwyconnector-daemon/batch-info.log
/var/ecwyconnector-daemon/batch-error.log
/var/ecwyconnector-daemon/batch-debug.log

Change Logging Level

The available logging level:
  • INFO - default level
  • DEBUG - should not set to this level unless necessary
  • ERROR
  • WARN

JBoss 4.0.x

{jboss folder}/server/{profile name}/conf/log4j.xml

Jboss 4.2.x / Jboss 5.1.x

{jboss folder}/server/{profile name}/conf/jboss-log4j.xml

Batches/Daemon

/opt/ecosway/daemon/qconnector/config/log4j.xml

Update Properties Files

All of the properties files can be found in:

/data/ecwyconnector

ws-mimic

List of the properties files:
  • /data/ecwyconnector/ws-mimic/application.properties
  • /data/ecwyconnector/ws-mimic/jndi-factory.properties
  • application.properties
    Property name Description
    ws.url The URL of the web service which process the request
    status.callback.url the callback URL of the caller to update the status, e.g. Dot Com mall
  • jndi-factory.properties
    Property name Description
    jndi.initial the initial context of the JNDI
    jndi.url the URL of the JNDI provider (JMS)
    jndi.url.pkgs the naming packages of the JNDI
    jndi.connection.factory the JNDI name of the JMS connection factory
    session.cache.size the number of JMS session to be cached
    request.queue.name the name of the JMS queue which keeps the web service request
    response.queue.name the name of the JMS queue which keeps the web service response

ws-status

List of the properties files:
  • /data/ecwyconnector/ws-status/database.properties
  • database.properties
    Property name Description
    jndi.datasource the JNDI name of the data source
    db.dialect the database dialect, e.g. DB2
    db.show.sql indicates whether to show the SQL used
    db.sql.comment indicates whether to show the comment of the SQL used

ecosway-adaptor

List of the properties file:
  • /data/ecwyconnector/ecosway-adaptor/application.properties
  • /data/ecwyconnector/ecosway-adaptor/database.properties
  • /data/ecwyconnector/ecosway-adaptor/registration/template.properties
  • application.properties
    Property name Description
    ws.url the URL of the web service. Currently this is the URL of the mimic of the actual web service
    connector.user the username of the actual web service
    connector.password the password of the actual web service
  • database.properties
    Property name Description
    jndi.datasource the JNDI name of the data source
    db.dialect the database dialect, e.g. DB2
    db.show.sql indicates whether to show the SQL used
    db.sql.comment indicates whether to show the comment of the SQL used

Housekeeping

The following files (e.g. log file, report file), which are older than 30-day, will be deleted:
  • application log folder:
    • /var/ecwyconnector
  • daemon/batch log folder:
    • /var/ecwyconnector-daemon
  • output folder of generated report:
    • /opt/ecosway/daemon/qconnector/reports

The housekeeping script can be found in SVN:

http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/housekeeping

Scheduled Task

Daemon/Batch:
Name Path Scheduled Time
PendingEventProcessor /opt/ecosway/daemon/qconnector/scripts/pending_event_processor.sh Hourly
EventReport /opt/ecosway/daemon/qconnector/scripts/event_report.sh Daily at 0105
Housekeeping:
Name Path Scheduled Time
Remove application log files which older than 30-day /opt/ecosway/housekeeping/scripts/delete_old_webapp_log_files.sh Daily at 0010
Remove daemon log files which older than 30-day /opt/ecosway/housekeeping/scripts/delete_old_daemon_log_files.sh Daily at 0010
Remove old generated report files which older than 30-day /opt/ecosway/housekeeping/scripts/delete_old_report_files.sh Daily at 0010

Updated by chin-yeh about 13 years ago · 22 revisions