Announcement Announcement Module
No announcement yet.
How to initialize Database at startup Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to initialize Database at startup

    Hi, the whole developtime I spend on my project, I was initilialising the DB with the TestClass. I wrote an own initilialising-service which I can call in the TestClass and my Data is present. But now I want to deploy the war file on a real server, and there I can not call the TestClass. I just can run tomcat and there my initialise-service isn't called.

    So, I know there is a possibility with jdbc-embedded to initilialise a DB, but I fill the DB with the initilialising-service programmatically. How can I achieve to run the service on startup application ?

    And what is the best way to achieve a behaviour I need here ?