Spring Framework JndiLocatorDelegate - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework JndiLocatorDelegate class.

This code example shows how to use the following methods:setJndiEnvironment
	/** 
	 * Set the JNDI environment to use for JNDI lookups. 
	 * @see org.springframework.jndi.JndiAccessor#setJndiEnvironment 
	 */ 
	public void setJndiEnvironment(Properties jndiEnvironment) {
		this.jndiLocator.setJndiEnvironment(jndiEnvironment);
	} 
 
	/** 
	 * Set whether the lookup occurs in a J2EE container, i.e. if the prefix 
	 * "java:comp/env/" needs to be added if the JNDI name doesn't already 
	 * contain it. PersistenceAnnotationBeanPostProcessor's default is "true". 
	 * @see org.springframework.jndi.JndiLocatorSupport#setResourceRef 
	 */ 
	public void setResourceRef(boolean resourceRef) {
		this.jndiLocator.setResourceRef(resourceRef);
	} 
 
	/** 
	 * Specify a JNDI name of the {@link java.util.concurrent.Executor} to delegate to, 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:lookup
	} 
 
	@Override 
	public void afterPropertiesSet() throws NamingException {
		if (this.jndiName != null) {
			ScheduledExecutorService executor = this.jndiLocator.lookup(this.jndiName, ScheduledExecutorService.class);
			setConcurrentExecutor(executor);
			setScheduledExecutor(executor);
		} 
	} 
 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:lookup
 
	@Override 
	public void afterPropertiesSet() throws NamingException {
		if (this.jndiName != null) {
			try { 
				this.threadFactory = this.jndiLocator.lookup(this.jndiName, ThreadFactory.class);
			} 
			catch (NamingException ex) {
				if (logger.isDebugEnabled()) {
					logger.debug("Failed to find [java:comp/DefaultManagedThreadFactory] in JNDI", ex);
				} 
				if (logger.isInfoEnabled()) {
					logger.info("Could not find default managed thread factory in JNDI - " +
							"proceeding with default local thread factory"); 
				} 
			} 
		} 
	} 
 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework JndiLocatorDelegate Methods: