How can I add a file-based H2-datasource to Wildfly?

21 views
Skip to first unread message

Mobile Visuals

unread,
Apr 20, 2020, 3:09:26 PM4/20/20
to H2 Database
I use Wildfly and added a datasource to it with the connection URL jdbc:h2:mem:test. The data is however lost when my Enterprice-app is shut down. I then tried to make H2 file based, by adding a datasource with the connection URL  jdbc:h2:~/test. I then got this error:

"WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid"

So how can I add a file-based H2-datasource to Wildfly?
Reply all
Reply to author
Forward
0 new messages