Best code examples for Hibernate ORM JndiService class (org.hibernate.engine.jndi.spi.JndiService)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM JndiService class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM JndiService examples from Open Source projects
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. 
Full Snippet Info