context.xml.erb 736 B

123456789
  1. <Context docBase="<%= @war %>" path="/"
  2. debug="5" reloadable="true" crossContext="true" allowLinking="true">
  3. <Environment name="appEnvironment" value="<%= node['app_environment'] %>"
  4. type="java.lang.String" override="false"/>
  5. <Resource name="jdbc/<%= @database['database'] %>" auth="Container" type="javax.sql.DataSource"
  6. maxActive="<%= @database['max_active'] %>" maxIdle="<%= @database['max_idle'] %>" maxWait="<%= @database['max_wait'] %>"
  7. username="<%= @database['username'] %>" password="<%= @database['password'] %>" driverClassName="<%= @database['driver'] %>"
  8. url="jdbc:<%= @database['adapter'] %>://<%= @host %>:3306/<%= @database['database'] %>"/>
  9. </Context>