how to deploy a webapp and create its resources

前端 未结 2 548
清酒与你
清酒与你 2020-12-15 01:29

before deploy \"myapp.war\" on glassfish 4 i have to

  1. create jdbc connection pool (/WEB-INF/glassfish-resources.xml -> jdbc-connection-pool does no
2条回答
  •  余生分开走
    2020-12-15 01:58

    finally i found a solution:

    1. database create/upgrade: in ServletContextListener.contextInitialized i use compile-time-generated ddl script to create database if not exists, or use liquibase to upgrade database if exists. no more persistence.xml usage for database generation.

    2. authentication realm deploy: i don't deploy or create any container-specific realm. in ServletContextListener.contextInitialized i register a custom JASPIC implementation, which is itself a JAAS login module wrapper. thanks to @ArjanTijms for this aricle and this answer

提交回复
热议问题