Hi All,
How can we read data from H2 DB which is saved from any task ?
Because every time we run the application from studio it removes and install app.
Where does it creates H2 database when we run any application from studio.
Thanks
Akhilesh
Hi All,
How can we read data from H2 DB which is saved from any task ?
Because every time we run the application from studio it removes and install app.
Where does it creates H2 database when we run any application from studio.
Thanks
Akhilesh
Hello,
Studio is a development environment and by default it is configured to empty the database after each restart. There is a configuration in the Studio (Preferences->Database) that allows you to save your data after each Studio restart, if this is what you want to do.
What we can also suggest is to install a bundle (Bonita+Tomcat or Bonita+JBoss) that would allow you to have a test environment with a database of your choice. You can download it from our website.
Hope this helps,
Haris
Thanks Haris for your response.
I understand if we install Bonita bundle on tomcat and we can select DB of our own choice. We can perform diferent DB operation.
But while running application from studio if we uncheck option “Clean Database on exit” under Preferences->Database.
Thanks
Akhilesh
Thanks again Haris for your quick response.
But how can I read the data ?
Where is the database created ?
Where are the tables created ?
How can we access this information ?
Can you please give me some pointers.
Thanks
Akhilesh
I would recommend you to access to your data using APIs.
Thanks for your response.
Hello Akhilesh,
Yes, if you uncheck this option in the Studio, data will remain and you will be able to “read” it next time you run your process.
Cheers,
Haris