リスト2:Oracleを使用する場合のserver.xml


<RequestInterceptor
  className="org.apache.tomcat.request.JDBCRealm" debug="99"
  driverName="oracle.jdbc.driver.OracleDriver"
  connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
  connectionName="scott"
  connectionPassword="tiger"
  userTable="users" userNameCol="user_name" userCredCol="user_pass"
  userRoleTable="user_roles" roleNameCol="role_name"/>


本文へ戻る