-
I improved DSL format and implemented new bean configuration which uses objects read from DSL file instead of single larger property map. This object based configuration storage improves performance of configuration lookup during configuration of beans.
During improving DSL format I decided to check converter used to convert configuration from property file to DSL file. I found few issues in it - some related to changes in DSL format and some were not supported cases - and fixed found issues.
Now improved DSL format looks like this:
--debug = 'server,xmpp.impl' --new-connections-throttling = '5290:1100' --cluster-mode = true --virt-hosts = zeus,test config-type = --gen-config-def dataSource { default() { uri = 'jdbc:postgresql://127.0.0.1/tigase?user=test&password=test&autoCreateUser=true' } } sess-man { message-archive-xep-0136 (class: 'tigase.archive.MessageArchivePlugin') { } } c2s { beans = 'urn:xmpp:sm:3' } message-archive (class: 'tigase.archive.MessageArchiveComponent') { }
-
I think we can close it as I think DSL format is now ready.
I added format description to admin guide for Tigase XMPP Server 7.2.0 in task #4481
Type |
Task
|
Priority |
Normal
|
Assignee | |
RedmineID |
4463
|
Version |
tigase-server-8.0.0
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
A this point DSL configuration works well, however it is not possible to easily find bean definition stored in memory and distinguish it in config file. Also it is not possible to define bean as exportable from config file.
We need to improve format of configuration stored in memory for faster lookup and add improve support for defining beans in DSL config file.