2010-10-05

Tomcat DataSource 설정

context.xml에
<ResourceLink global="jdbc/iregistry" name="jdbc/iregistry" type="javax.sql.DataSource"/>
server.xml의 GlobalNamingResources에
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" 
  maxActive="100" maxIdle="30" maxWait="10000" 
  name="jdbc/dbname" password="xxxxxx" 
  type="javax.sql.DataSource" 
  url="jdbc:mysql://localhost:3306/dbname"
  username="username"/>

댓글 없음:

댓글 쓰기