wiki:OpendasConfiguringClient

Configuring DAS client

OpenDAS can be started with a configuration file in argument.
The same station can thus handle several instances of OpenDAS client by using different configuration files.
Without argument, it is the default file ./das_client.conf that will be used.
Technically, this configuration file is a text file consisting of a suite of “property”: “value”.
The indispensable properties are:

  • Properties beginning with JMS are relative to the use of ActiveMQ (URL, user, password and message queues)
  • workstation_id, the identifier of the station. it must be present in the table das_workstation
  • mask, the mask to be used for the interface. it must be present in tables das_functional_config and das_graphical_config with the corresponding identifier of the station.

Other properties are:

  • printing, indicates if labels must be ignored (0), printed (1) or edit in the form of report pdf (2)
  • debugMode, the debug mode indicates numerous additional information in logs. The value 1 activates this mode.
  • balance_simulation, if this property has 1 as value, the weighty request for balances is replaced by a small window allowing the manual data entry of a weight.
  • scanner_simulation, if this property has 1 as value, the request of code for scanners is replaced by a small window allowing the manual data entry of a code.
  • timeout,indicates the maximum time for a request in milliseconds.

Example of client configuration file :

JMSUrl: tcp://127.0.0.1:61616
JMSUser:
JMSPassword:
JMSPoolNameExt: TALEND_DEMO     
JMSPoolNameServer: DAS_SERVER
JMSPoolNameClient: DAS_CLIENT

-- debugMode, the debug mode indicates numerous additional information in logs. The value 1 activates this mode. 
debugMode: 1

-- workstation_id, the identifier of the station. it must be present in the table das_workstation 
workstation_id: 6

-- mask, the mask to be used for the interface. it must be present in tables das_functional_config and das_graphical_config with the corresponding identifier of the station. 
mask: purchase

-- balance_simulation, if this property has 1 as value, the weighty request for balances is replaced by a small window allowing the manual data entry of a weight. 
balance_simulation: 0

-- scanner_simulation, if this property has 1 as value, the request of code for scanners is replaced by a small window allowing the manual data entry of a code. 
scanner_simulation: 0

-- printing, indicates if labels must be ignored (0), printed (1) or edit in the form of report pdf (2) 
printing: 2

-- timeout,indicates the maximum time for a request in milliseconds. 
timeout: 3000

Attachments