title: spring hibernate configuration using resource_local or jta by default?
body: <p>may i know as my configuration is done directly on applicationContext.xml, i do not have persistence.xml .  by default this is resource_loca or jta?  do i need to add extra parameter if i want to use jta?</p>
  
  <pre><code>&lt;bean id="dataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
          &lt;property name="driverClassName"&gt;
              &lt;value&gt;oracle.jdbc.driver.OracleDriver&lt;/value&gt;
          &lt;/property&gt;
              &lt;!-- xdb is defined by running the hsqldb as xdb (see above) --&gt;
          &lt;property name="url"&gt;
              &lt;value&gt;jdbc:oracle:thin:@theserver:1521:appsdb&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="username"&gt;
              &lt;value&gt;test&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="password"&gt;
              &lt;value&gt;test&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
  
  
  
  &lt;bean id="annotatedsessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt;
  
  
      &lt;property name="packagesToScan" value="com.company.x.model" &gt;
      &lt;/property&gt;
  
  
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
  
              &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.format_sql"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.use_sql_comments"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.cglib.use_reflection_optimizer"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.hbm2ddl.auto"&gt;update&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.min_size"&gt;5&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.max_size"&gt;20&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.timeout"&gt;1800&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.max_statements"&gt;50&lt;/prop&gt;
              &lt;prop key="hibernate.cache.provider_class"&gt;
                    com.company.x.services.ExternalEhCacheProvider
              &lt;/prop&gt;
              &lt;prop key="hibernate.cache.use_second_level_cache"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.cache.use_query_cache"&gt;true&lt;/prop&gt;
  
  
  
          &lt;/props&gt;
      &lt;/property&gt;
      &lt;property name="dataSource"&gt;
          &lt;ref bean="dataSource" /&gt;
      &lt;/property&gt;
  
  &lt;/bean&gt;
  </code></pre>