Dynamic Connection API
Logi Report Server manages dynamic connections by DynamicConnectionManager. You can call jet.server.api.admin.AdminService.getDynamicConnectionManager() to get the DynamicConnectionManager object, and call its methods addDynamicConnection(), updateDynamicConnection() or removeDynamicConnection() to maintain dynamic connections for multitenancy clients by programs.
When running a report, Logi Report Server calls the DynamicConnectionProvider (the built-in provider calls DynamicConnectionManager internally) to get dynamic connections for all used data sources at first and then passes the dynamic connection properties to Logi Report Engine. Logi Report Engine then merges the changed properties with the original catalog connection properties to setup the database connection.
You can implement jet.server.api.dynamiccon.DynamicConnectionProvider to get dynamic connections from your own system and then register a customized DynamicConnectionProvider into Logi Report Server by adding the property server.custom.DynamicConnectionProvider in the server.properties file in
For detailed usages about the Dynamic Connection API, refer to the jet.server.api.dynamiccon package in the Logi Report Javadoc.
Please sign in to leave a comment.