How to define MySQL data source in TomEE?
问题 Platform: TomEE Web profile 1.5.0. I am trying to do a very basic thing, setup a data source for MySQL. I have read the official guide (http://openejb.apache.org/configuring-datasources.html). It asks us to enter a Resource element in openejb.xml. I can not find that file anywhere in tomee-webprofile-1.5.0. I read in other places that I could use tomee.xml for the same purpose. So, I added this to my conf/tomee.xml. <Resource id="TestDS" type="DataSource"> JdbcDriver com.mysql.jdbc.Driver