List of usage examples for org.apache.ibatis.datasource.jndi JndiDataSourceFactory DATA_SOURCE
String DATA_SOURCE
To view the source code for org.apache.ibatis.datasource.jndi JndiDataSourceFactory DATA_SOURCE.
Click Source Link
From source file:org.mybatis.guice.datasource.builtin.JndiDataSourceProvider.java
License:Apache License
/** * Creates a new JndiDataSourceProvider with the specified JNDI data source. * * @param dataSource//from w w w .ja v a 2 s. co m * the JNDI datasource name (fully qualified) */ @Inject public JndiDataSourceProvider(@Named("jndi.dataSource") final String dataSource) { properties.setProperty(JndiDataSourceFactory.DATA_SOURCE, dataSource); }