<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2010, The HSQL Development Group. All rights reserved.
  Released under the HSQL license, available at http://hsqldb.org
-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  <bean id="appBean" class="org.hsqldb.sample.JdbcAppClass" init-method="init"
        depends-on="setupBean">
    <!--  Note the depends-on parameter, since we can't access DB via LDAP
          until after we configure LDAP access.  -->
    <property name="dataSource">
      <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="url" value="jdbc:hsqldb:mem:localDb" />
        <!-- The user and password here are for an account that doesn't exist
             in our application database.  The account is in LDAP or our master
             database, and our authenticator will say to give access to the
             application HyperSQL catalog using this username and password, so a
             temporary account will be
             generated just for the duration of the session. -->
        <property name="username" value="straight" />
        <property name="password" value="pwd" />
      </bean>
    </property>
  </bean>
</beans>
