Is there any way to bypass the internal h2 database and connect wildfly swarm to an external database so that changes aren't lost after restarting the application server?
I read several tutorials, but the use of container is already deprecated.
I would appreciate your help!
Changing to use a different database other than H2 is described here: https://wildfly-swarm.gitbooks.io/wildfly-swarm-users-guide/content/common/jpa.html
Though Container
is deprecated, the replacement for it in a custom main()
is just Swarm
.