Example usage for org.apache.ibatis.datasource.jndi JndiDataSourceFactory INITIAL_CONTEXT

List of usage examples for org.apache.ibatis.datasource.jndi JndiDataSourceFactory INITIAL_CONTEXT

Introduction

In this page you can find the example usage for org.apache.ibatis.datasource.jndi JndiDataSourceFactory INITIAL_CONTEXT.

Prototype

String INITIAL_CONTEXT

To view the source code for org.apache.ibatis.datasource.jndi JndiDataSourceFactory INITIAL_CONTEXT.

Click Source Link

Usage

From source file:org.mybatis.guice.datasource.builtin.JndiDataSourceProvider.java

License:Apache License

/**
 * Sets the initial context./*from w w  w .j  a v a  2  s .com*/
 *
 * @param initialContext
 *          the new initial context
 */
@com.google.inject.Inject(optional = true)
public void setInitialContext(@Named("jndi.initialContext") final String initialContext) {
    properties.setProperty(JndiDataSourceFactory.INITIAL_CONTEXT, initialContext);
}