How to connect to Default Database by using BeanShell?

Confluence User - 12 Aug, 2020

How to connect to Default Database by using BeanShell? Because I hope to store my data in the Default Database

At the load binder I selected workflow Form Binder But at the Store Binder i select Beanshell

forms;store;binder;beanshell;database;default

1


13 Aug, 2020
confluenceUser
confluenceUser

Hi, there is an example in Bean Shell Programming Guide#UseasFormLoadBinderFormLoadBinder 

	// retrieve connection from the default datasource
    DataSource ds = (DataSource)AppUtil.getApplicationContext().getBean("setupDataSource");
            con = ds.getConnection();
RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print