JndiService locate - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for JndiService locate method.

This code example shows how to use the following methods:locate
	public void start() { 
		try { 
			String jndiProperty = config.getJndiName();
			if ( jndiProperty != null ) {
				log.tracef( "Retrieving Infinispan from JNDI at %1$s", jndiProperty );
				externalCacheManager = (EmbeddedCacheManager) jndiService.locate( jndiProperty );
			} 
		} 
		catch (RuntimeException e) {
			throw log.unableToInitializeInfinispan( e );
		} 
 
		// clear resources 
		this.jndiService = null;
	} 
 
	/** 
	 * Initializes the persistence strategy to be used when accessing the datastore. In particular, all the required 
	 * caches will be configured and initialized. 
	 * 
3
CodeRank