Filesystem Structure

This is targeted for a Debian GNU/Linux System.

/etc/hefeweizen Configuration directory for the system. Each gateway will have a sub directory in this directory
/etc/hefeweizen/hefeweizen-defaults default configuration file
/var/lib/hefeweizen Transaction directory of the system (open transactions, system states etc)
/var/run/hefeweizen Process ID directory of the system (ania, big_ania, every tasker will store its pid in there)
/var/log/hefeweizen Directory for log files
/var/log/hefeweizen/HefeWeizen.log|Primary log file
/usr/sbin/ Directory for executables (or scripts). This includes ania, big_ania, taskers etc.

B2B system instances:

/etc/hefeweizen/systems/gw1 system configuration directory for gateway with name gw1
/etc/hefeweizen/systems/gw1/trading_agreements all the CPA's of this B2B system
/etc/hefeweizen/systems/gw1/certificates The B2B systems own certificates
/etc/hefeweizen/systems/gw1/certificates/default A directory with a certificate, private key and password file that gets used several times.
/etc/hefeweizen/systems/gw1/certificates/default/gw1_cacert.pem A x509 certificate in pem file format (see openssl). This cert was created based on the private key.
/etc/hefeweizen/systems/gw1/certificates/default/gw1_private_key.pem The private key.
/etc/hefeweizen/systems/gw1/certificates/default/gw1_private_key.password The file holding the password for the private key.
/etc/hefeweizen/systems/gw1/certificates/gw1_signing_cert A symbolic link to a directory holding certificates. gw1_signing_cert is a reference that is used in the CPA.
/etc/hefeweizen/systems/gw1/infrastructure/ Infrastructure directory for B2B system. This directory has no configuration file but furhter directories.
/etc/hefeweizen/systems/gw1/infrastructure/integration-points/blah.conf A configuration file for a integration point. Includes the directorie where the B2B system will look for backend application commands and messages. Also this configuration provides the directories where to put payloads and command files from incoming ebXML messages.
/etc/hefeweizen/systems/gw1/infrastructure/exchange-points/blah.conf The configuratio file for an exchange point (eg HTTP, HTTPS, or SMTP server). This include variables for this exchange point.

B2B systems spool for outgoing and incoming messages and commands.

/var/spool/hefeweizen/ This is the default path to place command and payload files. The specific directories are configured by each B2B system (in the infrastructure configuration files.
/var/spool/hefeweizen/gw1 this is the root directory of gw1 B2B systems messages and command files.

Structure within a gateway (system):

several plans onf paper