Rest API Extensión - use the same connection string as Bonita Engine

1
0
-1

Hi community,

We have been working with custom rest api extensions, we are using Groovy Sql to create some custom queries that read data from the bdm database.

At the moment we have the connection string static on the groovy script, I wonder if there is a way to read the connection string from the database.property?

Thanks

1 answer

1
0
-1

Hello,

The BDM Database is a constant name (except it changes between 7.8 to 7.10).

When I need to access a connection to the BDM, I use BonitaEngineConnection.getBusinessConnection() from BonitaProperties 2.8

Attention to release this connection!

org.bonitasoft.properties
bonita-properties
2.8.0

Notifications