List of usage examples for org.springframework.jndi JndiLocatorDelegate createDefaultResourceRefLocator
public static JndiLocatorDelegate createDefaultResourceRefLocator()
From source file:fr.mycellar.configuration.TargetConfiguration.java
@Bean public Session session() throws NamingException { return JndiLocatorDelegate.createDefaultResourceRefLocator().lookup("mail/Session", Session.class); }