OmnyaRa / log4jdbc-log4j2

Automatically exported from code.google.com/p/log4jdbc-log4j2
0 stars 0 forks source link

Improve spring configuration for DataSourceSpy #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add constructors to improve configuration for DataSourceSpy for better Spring 
usage:

<bean id="dataSourceSpied" class="...">
 ...
</bean>

<bean id="slf4jDelegator" 
class="net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator"/>

<bean id="rdbmsSpecifics" 
class="net.sf.log4jdbc.sql.rdbmsspecifics.OracleRdbmsSpecifics"/>

<bean id="dataSource" class="net.sf.log4jdbc.Log4jdbcProxyDataSource">
  <constructor-arg ref="dataSourceSpied" />
  <constructor-arg ref="slf4jDelegator" />
  <constructor-arg ref="rdbmsSpecifics" />
</bean>

See attached patch.

Original issue reported on code.google.com by pdj...@gmail.com on 20 Dec 2013 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by frederic...@gmail.com on 6 Jan 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Thank you for this useful suggestion. The snapshot 1.17-SNAPSHOT has been 
released, let me know if this works as expected for you.

Original comment by frederic...@gmail.com on 11 Feb 2014 at 11:49