Follow

Enabling Table DCB for standalone Java programs

Important: Please read https://support.heirloom.cc/hc/en-us/articles/360058095591-Table-DCB-migration before this article and enable Table DCB in the EBP system (read https://support.heirloom.cc/hc/en-us/articles/212578586-EBP-Configuration if you have questions regarding EBP Configuration)

 

To enable the Table DCB in standalone Java programs, the user needs to add static properties to the java class. 

The properties need to be added in a static block before invoking the standalone program. The example shows setting the connection properties to a Postgres SQL table that contains the Table DCB information.

static {
System.setProperty("dcb.db.url","jdbc:postgresql://localhost:5432/postgres");
System.setProperty("dcb.db.user","postgres");
System.setProperty("dcb.db.pass","root");
System.setProperty("dcb.db.driver","org.postgresql.Driver");
System.setProperty("dcb.db.table","");
System.setProperty("dcb.mode.db","true");
}

Important: The project must contain the relevant jdbc driver library, otherwise the connection could not be established. 

Please make sure that any files that are used by the standalone program have the corresponding entries in the Table DCB.

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk