context.xml.erb 737 B

123456789
  1. <Context docBase="<%= @war %>" path="/"
  2. debug="5" reloadable="true" crossContext="true" allowLinking="true">
  3. <Environment name="appEnvironment" value="<%= node.chef_environment %>"
  4. type="java.lang.String" override="false"/>
  5. <Resource name="jdbc/<%= @app %>" 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 %>:<%= @database['port'] %>/<%= @database['database'] %>"/>
  9. </Context>