<?xml version="1.0" encoding="UTF-8"?>
<Property>
	<MSH>
		<Log>
			<!-- "JDK" or "LOG4J" -->
			<UseLogger>JDK</UseLogger>
			<!-- empty path: user.home -->
			<LogPath>/hermes</LogPath>
			<LogFile>msh.log</LogFile>
			<!--
        0: all
        1: info, warn, error
        2: warn, error
        3: error
        4: no log
      -->
			<LogLevel>0</LogLevel>
			<!-- For rolling log files, maximum file size per log file,
           -1: one single big file -->
			<MaxFileSize>10000</MaxFileSize>
		</Log>
		<Config>
			<!-- The URL of MSH (The URL of MSH to external systems) -->
			<!-- Keep trailing slash after context path to avoid unexpected problems
           with some application servers -->
			<URL>http://localhost:8080/msh/</URL>
		<!--	<AuthenticationFile>/hermes/msh_passwd</AuthenticationFile>-->
			<!-- Optional property specifying the implementation class name of
           hk.hku.cecid.phoenix.message.handler.ToUrlResolver which
           maps a <ToPartyId> to a physical URL for sending message -->
			<ToUrlResolver>hk.hku.cecid.phoenix.message.handler.ToUrlResolverImpl</ToUrlResolver>
			<!-- Optional property specifying the implementation class name of
           hk.hku.cecid.phoenix.pki.CertResolver which
           returns an array of java.security.cert.Certificate's based on
           the identity information in the received EbxmlMessage -->
			<!-- <CertResolver></CertResolver> -->
			<!-- Optional property controlling whether a positive acknowledgment
           message will be generated if the sender successfully sends a
           message  -->
			<PositiveAcknowledgment>true</PositiveAcknowledgment>
			<!-- Optional property controlling whether an error message being sent
           back to the sender is augmented with the original message as
           a MIME payload  -->
			<AugmentedErrorMessage>false</AugmentedErrorMessage>
			<!-- Optional property controlling the content transfer encoding used
           in payload while sending in HTTP -->
			<ContentTransferEncoding>binary</ContentTransferEncoding>
		</Config>
		<!-- uncomment to use web proxy for outgoing HTTP connections
    <Proxy>
      <Host>127.0.0.1</Host>
      <Port>8282</Port>
    </Proxy>
    -->
		<!--
		<Mail>
			<SMTP>
				<Host>host.domain</Host>
				<User>user</User>
				<Password>password</Password>
			</SMTP>
			<Poll>
				<Protocol>pop3</Protocol>
				<Host>host.domain</Host>
				<Port>110</Port>
				<Folder>INBOX</Folder>
				<User>user</User>
				<Password>password</Password>
				<MonitorInterval>20000</MonitorInterval>
				<ForceChangeSubType>true</ForceChangeSubType>
			</Poll>
			<SMIME>
				<Encryption>
					<KeyStore>
						<Path/>
						<File/>
						<Password/>
					</KeyStore>
				</Encryption>
				<Decryption>
					<KeyStore>
						<Path/>
						<File/>
						<Alias>mshUser</Alias>
						<Password>mshUser</Password>
					</KeyStore>
				</Decryption>
			</SMIME>
		</Mail>
-->
		<DigitalSignature>
			<TrustedAnchor>
				<KeyStore>
					<Path>/hermes</Path>
					<File>msh.keystore</File>
					<Password>mshUser</Password>
				</KeyStore>
			</TrustedAnchor>
			<AckSign>
				<KeyStore>
					<Path>/hermes</Path>
					<File>msh.keystore</File>
					<Algorithm>dsa-sha1</Algorithm>
					<Alias>mshUser</Alias>
					<Password>mshUser</Password>
				</KeyStore>
			</AckSign>
		</DigitalSignature>
		<Persistent>
			<Database>
				<!-- JDBC database driver used in MSH -->
				<!--<Driver>org.postgresql.Driver</Driver>-->
				<Driver>org.hsqldb.jdbcDriver</Driver>
				<!-- <Driver>org.gjt.mm.mysql.Driver</Driver> -->
				<!-- Database user name -->
				<User>sa</User>
				<!-- Database password -->
				<Password/>
				<!-- Database URL -->
				<!--<URL>jdbc:postgresql://localhost:5432/databasename</URL>-->
				<URL>jdbc:hsqldb:/hermes/db</URL>
				<!-- <URL>jdbc:mysql://path/msh</URL> -->
				<!-- Configure database transaction isolation level. Valid settings are:
             READ_COMMITTED, READ_UNCOMMITTED, REPEATABLE_READ and SERIALIZABLE
         -->
				<TransactionIsolationLevel>READ_COMMITTED</TransactionIsolationLevel>
				<!-- Number of initial database connections in the connection pool -->
				<InitialConnections>3</InitialConnections>
				<!-- Maximum number of database connections allowed in the database 
             pool. Enter the value of 0 if unlimited number of connections 
             are allowed -->
				<MaximumConnections>30</MaximumConnections>
				<!-- Maximum period of time in milliseonds to wait for an available
             connection -->
				<MaximumWait>20000</MaximumWait>
				<!-- Maximum idle time for a connection object to be considered valid
             in the connection pool -->
				<MaximumIdle>60000</MaximumIdle>
			</Database>
			<!-- Repository location for storing ebXML messages persistently -->
			<MessageRepository>/hermes/ebxmlms/repository</MessageRepository>
			<!-- Maximum number of files in a single directory -->
			<MaxFiles>1000</MaxFiles>
			<!-- File name for MSH backup -->
			<BackupFile>/hermes/MSHBackup.zip</BackupFile>
			<!-- Directory where the archived data are placed -->
			<ArchiveDirectory>/hermes/msh_archive</ArchiveDirectory>
		</Persistent>
		<!-- Default message repository for MessageListener used in MSH -->
		<MessageListener>
			<TrustedRepository>/hermes/ebxmlms/trustedRepository1;/hermes/ebxmlms/trustedRepository2</TrustedRepository>
			<ObjectStore>/hermes/ebxmlms/objectStore</ObjectStore>
		</MessageListener>
	</MSH>
</Property>
