{"id":869,"date":"2014-11-26T14:53:12","date_gmt":"2014-11-26T12:53:12","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=869"},"modified":"2017-05-12T11:24:12","modified_gmt":"2017-05-12T09:24:12","slug":"tomcat-datasource-in-context-xml","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/tomcat-datasource-in-context-xml\/","title":{"rendered":"Tomcat datasource in context.xml"},"content":{"rendered":"<pre class=\"brush:bash shell;toolbar: false\">\r\n&lt;Resource name=\"exifweb\"\r\n\t\t  auth=\"Container\"\r\n\t\t  type=\"javax.sql.DataSource\"\r\n\t\t  factory=\"org.apache.tomcat.jdbc.pool.DataSourceFactory\"\r\n\t\t  testWhileIdle=\"true\"\r\n\t\t  testOnBorrow=\"true\"\r\n\t\t  testOnReturn=\"false\"\r\n\t\t  validationQuery=\"SELECT 1\"\r\n\t\t  validationInterval=\"30000\"\r\n\t\t  timeBetweenEvictionRunsMillis=\"30000\"\r\n\t\t  maxActive=\"10\"\r\n\t\t  minIdle=\"2\"\r\n\t\t  maxIdle=\"3\"\r\n\t\t  maxWait=\"5000\"\r\n\t\t  initialSize=\"1\"\r\n\t\t  removeAbandonedTimeout=\"60\"\r\n\t\t  removeAbandoned=\"false\"\r\n\t\t  logAbandoned=\"false\"\r\n\t\t  minEvictableIdleTimeMillis=\"30000\"\r\n\t\t  jmxEnabled=\"false\"\r\n\t\t  jdbcInterceptors=\"org.apache.tomcat.jdbc.pool.interceptor.ConnectionState\"\r\n\t\t  username=\"exifweb\"\r\n\t\t  password=\"exifweb\"\r\n\t\t  driverClassName=\"com.mysql.jdbc.Driver\"\r\n\t\t  url=\"jdbc:mysql:\/\/localhost:3306\/exifweb\"\/>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;Resource name=&#8221;exifweb&#8221; auth=&#8221;Container&#8221; type=&#8221;javax.sql.DataSource&#8221; factory=&#8221;org.apache.tomcat.jdbc.pool.DataSourceFactory&#8221; testWhileIdle=&#8221;true&#8221; testOnBorrow=&#8221;true&#8221; testOnReturn=&#8221;false&#8221; validationQuery=&#8221;SELECT 1&#8243; validationInterval=&#8221;30000&#8243; timeBetweenEvictionRunsMillis=&#8221;30000&#8243; maxActive=&#8221;10&#8243; minIdle=&#8221;2&#8243; maxIdle=&#8221;3&#8243; maxWait=&#8221;5000&#8243; initialSize=&#8221;1&#8243; removeAbandonedTimeout=&#8221;60&#8243; removeAbandoned=&#8221;false&#8221; logAbandoned=&#8221;false&#8221; minEvictableIdleTimeMillis=&#8221;30000&#8243; jmxEnabled=&#8221;false&#8221; jdbcInterceptors=&#8221;org.apache.tomcat.jdbc.pool.interceptor.ConnectionState&#8221; username=&#8221;exifweb&#8221; password=&#8221;exifweb&#8221; driverClassName=&#8221;com.mysql.jdbc.Driver&#8221; url=&#8221;jdbc:mysql:\/\/localhost:3306\/exifweb&#8221;\/><\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/tomcat-datasource-in-context-xml\/#more-869\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Tomcat datasource in context.xml<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12,8,10],"tags":[149,148],"class_list":["post-869","post","type-post","status-publish","format-standard","hentry","category-configuration","category-database","category-howto","category-programming","tag-datasource","tag-tomcat"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}