Running web app in both Jetty and Tomcat

后端 未结 4 1742
耶瑟儿~
耶瑟儿~ 2021-02-14 18:19

I have a web app which in production I run on Tomcat. It uses the MySQL connector, however it is not bundled up with the war, rather it is included under Tomcat\'s common lib di

4条回答
  •  既然无缘
    2021-02-14 19:01

    Does not directly answer your question but since I love portability in webapps my war will contain the connector jar and a connection pool (e.g the super duper c3p0). That means that the container will not manage the database connection for me anymore nor will I use JNDI to describe the connection properties. But the webapp is now 100% portable and predictable on tomcat, jetty, resin, jboss etc.

提交回复
热议问题