Declare data source as JNDI name in Spring’s integration tests Leave a Comment / Java / July 18, 2017 July 18, 2017 SimpleNamingContextBuilder builder = new SimpleNamingContextBuilder(); builder.bind(jndiName, dataSource); builder.activate();