3 Replies Latest reply: Oct 19, 2007 8:13 AM by 3004 RSS

    datasource environment setting in weblogic 9

    3004
      I have never worked with weblogic nor spring .I was investigating the application context xml file

      <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" lazy-init="true">
      <property name="driverClassName" value="${database.driver_class}"/>
      <property name="url" value="${database.url}"/>
      <property name="username" value="${database.username}"/>
      <property name="password" value="${database.password}"/>
      <property name="maxActive" value="15"/>
      <property name="maxIdle" value="5"/>
      <property name="maxWait" value="1000"/>
      <property name="defaultAutoCommit" value="true"/>
      <property name="removeAbandoned" value="true"/>
      <property name="removeAbandonedTimeout" value="60"/>
      </bean>


      and a database.properties file

      database.driver_class=oracle.jdbc.driver.OracleDriver
      database.username=@database.username@
      database.password=@database.password@
      database.url=@database.url@


      but I am wondering from when/where/how @database.username@ and
      @database.password@ and @database.url@ gets the value

      Please help

      M