I am trying to figure out howto convert the following Spring bean xml to the new JavaConfig method:
The datasource was easy to figure out, but i can't figure out howto pass the resource in. Any ideas?HTML Code:<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> <property name="configLocation" value="/WEB-INF/classes/db/ibatis/sqlmap-config.xml"/> <property name="dataSource" ref="dataSource"/> </bean>
EDITED:Code:@Bean public DataSource dataSource(){ JndiObjectFactoryBean jndi = new JndiObjectFactoryBean(); jndi.setExpectedType(DataSource.class); jndi.setJndiName("ezpweb"); return (DataSource) jndi.getObject(); } @Bean public SqlMapClient sqlMapClient(){ SqlMapClientFactoryBean sql = new SqlMapClientFactoryBean(); sql.setDataSource(dataSource()); sql.setConfigLocation(??????); }
I forgot to note that this is a web app running inside Jetty.


