package net.tooan.ynpay.core.ejb.helper;
import net.tooan.ynpay.commons.YnpayJndiConstants;
import net.tooan.ynpay.commons.service.ibatis.SqlMapClientInterceptor;
import javax.annotation.Resource;
import javax.sql.DataSource;
/**
* Created with IntelliJ IDEA.
* User: Jing
* Date: 13-10-15
* Time: 下午10:28
*/
public class SqlMapClientInterceptorBean extends SqlMapClientInterceptor {
@Resource(mappedName = YnpayJndiConstants.dsName)
private DataSource ds;
@Override
public String getResource() {
return "META-INF/ibatis/mysql/sql-map-config.xml";
}
@Override
public DataSource getDataSource() {
return ds;
}
}