OpenHub configuration

This page contains description of OpenHub behaviour's configuration. If you want to know configuration model then see External configuration model page.

Core configuration

Asynchronous algorithm configuration

Common recommendations for configuration:

  • set email addresses of administrators (ohf.admin.mail) because OpenHub sends notifications to these addresses, for example when
    • message processing failed
    • if message waits for response from external system for more then defined interval
  • set username and password to access different services - parameters security.user.* (* for web services, security.user.web-* for web, security.user.monitoring-* for monitoring)
  • path to log folder (log.folder.path)

All the following parameters (apart from log.folder.path and log.folder.pattern) are saved in database with default values. If you want to override any of these parameters then use approach described in external configuration model.


Default value




Count of unsuccessful tries of message processing before message will be marked as completely FAILED

Time interval between tries is defined by asynch.partlyFailedInterval.



Max. interval in seconds how long can be message being processed, in other words how long can be in PROCESSING state.

If message is still in processing then repair process ( will be started and the message state will be changed to PARTLY_FAILED.

This parameter is not only for messages themselves but also for external calls and confirmations.



Input asynchronous messages are waiting for processing in the priority queue. This parameter determines how many concurrent consumers (=threads) can take message from the queue and start processing. In other words this parameter detemines how many concurrent messages can be processed.

For more informacetion se, parameter concurrentConsumers



How often to run process (org.openhubframework.openhub.core.common.asynch.queue.PartlyFailedMessagesPoolRoute) for pooling PARTLY_FAILED messages (in seconds).

This parameter is relevant to asynch.partlyFailedInterval.



Interval (in seconds) between two tries of PARTLY_FAILED messages. When this interval expires then can be message be processed again.

This parameter is relevant to asynch.partlyFailedRepeatTime.



Maximum count of confirmation fails when will finish further processing of confirmation, confirmation fails.



How often to run process (org.openhubframework.openhub.core.common.asynch.confirm.ConfirmationsPoolRoute) for pooling failed confirmations (in seconds)

This parameter is relevant to asynch.confirmation.interval.



Interval (in seconds) between two tries of failed confirmations.

This parameter is relevant to asynch.confirmation.repeatTime.


Regular expression that defines URIs which will be ignored by extcall component. Useful when you want to skip communication with an external system.



Interval (in seconds) after that can be postponed message processed again.


Interval (in seconds) after that postponed messages will fail. See Guaranteed message processing order functionality for more details.



Final messages processing enabled or disabled. See Final messages handling functionality for more details.

Note: cannot be defined in database, needs to be in properties (requires application restart if changes).



Final messages processing job interval, in seconds.



Maximum number of final messages processed per job.



Duration in seconds to keep messages in OK state in the datastore. After this period expires and if there is no other action with the message, it will be processed as final (deleted by default).

  • "0" : messages will be processed as soon as possible (depends on the value of ohf.asynch.finalMessages.processingIntervalSec parameter)
  • "-1": messages in this state will be kept indefinitely




Duration in seconds to keep messages in CANCEL state in the datastore.




Duration in seconds to keep messages in FAILED state in the datastore.



Enable/disable processor that does delete messages

Note: to enable this processor then also the whole processing job must be enabled - see ohf.asynch.finalMessages.processingEnabled

Web console configuration


Default value


ohf.admin.console.messages.limit100Maximum count of messages which can be displayed in filtering.
ohf.admin.console.session-concurrency.limit2Maximum count of concurrent user sessions at one moment.

Miscellaneous configuration


Default value


ohf.cluster.actualNodeInstance.codeLocalNodeProperty which identifies node in cluster environment. This property is used for example by logging platform to mark log event with stamp of specific cluster node and for binding with database node record.
ohf.mail.admin.enabledfalseTrue for enabling sending emails to administrators.


Administrator email(s)

If more emails, then separated them with semicolon if empty then email won't be sent.

ohf.mail.fromOpenHub framework <>Email address FROM for sending emails
ohf.mail.smtp.serverlocalhostSMTP server for sending emails
Directory for storing temporary files, related to file upload component.
File repository directory where files will be stored, related to file upload component.
ohf.server.localhostUri.checkfalseEnable/disable checking of ohf.server.localhostUri

URI of this localhost application, including port number.

Related to cluster nodes evidence. If ohf.server.localhostUri.check=true then this URI is checked during OpenHub initialization.

ohf.disable.throttlingfalseTrue for disabling throttling at all. See throttling component.
ohf.endpoints.includePattern^(spring-ws|servlet).*$Pattern for filtering endpoints URI - only whose URIs will match specified pattern will be returned, related to endpoints overview.
ohf.requestSaving.enablefalseTrue for enabling saving requests/responses for filtered endpoints URI.
ohf.requestSaving.endpointFilter^(spring-ws|servlet).*$Pattern for filtering endpoints URI which requests/response should be saved.
ohf.alerts.repeatTimeSec300How often to run checking of alerts (in seconds)
log.folder.path${log.folder}, value is from Maven profilePath to folder with application logs, used in logs searching in admin GUI.

Defines format of log file names (include filter) which will be taking into logs searching in admin GUI.

ohf.uri.inputPattern^(spring-ws|servlet).*$Pattern for filtering input routes (used in Stopping mode)


Throttling functionality is implemented by throttling component where you find description of the configuration.


See alerts for description.

Restrict Spring bean inicialization 

If there are many Spring beans with route definitions then startup time for loading ESB application can be quite long. This functionality enables to include only those Spring beans which should be initialized or exclude those Spring beans which we don't want to initialize.

It can be handy during development because it's possible via system properties to restrict set of Spring beans (=Camel routes) which will be initialized.

There are two handy classes for these purposes: org.openhubframework.openhub.common.spring.SystemIncludeRegexPatternTypeFilter and org.openhubframework.openhub.common.spring.SystemExcludeRegexPatternTypeFilter

Both type filters are handled by system or environment property. springIncludePattern for SystemIncludeRegexPatternTypeFilter class, springExcludePattern for SystemExcludeRegexPatternTypeFilter class. System property has higher priority.

Example of system property definition for exclude filter (excludes all Spring beans under org.openhubframework.openhub.modules package and sub-packages):


Include filters are applied after exclude filters.

Configuration checking

Configuration checker (org.openhubframework.openhub.core.conf.ConfigurationChecker) enables to check selected configuration parameters during application start:

  • ohf.server.localhostUri - checks URI availability (must be explicitly enabled by parameter ohf.server.localhostUri.check, default value is false)
  • ohf.endpoints.includePattern, ohf.requestSaving.endpointFilter - checks regular expressions 

You can implement your own checking functionality by org.openhubframework.openhub.core.conf.ConfCheck.