Code example for JndiService

Methods: locate

0
	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. 
	 *