0

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!

GC268DM
  • 403
  • 7
  • 15

1 Answers1

1

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.

Ken
  • 835
  • 4
  • 11
  • Thanks. I included the h2 dependency and I am now starting a h2 tcp server programatically in the Main class. Then I am connecting according to your referenced user guide! – GC268DM Oct 24 '16 at 19:17