Spring Framework JndiObjectLocator - 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 JndiObjectLocator class.

This code example shows how to use the following methods:afterPropertiesSet, getJndiName, lookup
	public void afterPropertiesSet() throws NamingException { 
	 * Fetches the RMI stub on startup, if necessary. 
	 * @throws RemoteLookupFailureException if RMI stub creation failed 
	 * @see #setLookupStubOnStartup 
	 * @see #lookupStub 
	public void prepare() throws RemoteLookupFailureException { 
		// Cache RMI stub on initialization? 
		if (this.lookupStubOnStartup) { 
			Object remoteObj = lookupStub(); 
			if (logger.isDebugEnabled()) { 

This code example shows how to use the following methods:
 * special way, getting executed on an EJB instance retrieved via an EJB home. 
 * @author Rod Johnson 
 * @author Juergen Hoeller 
public abstract class AbstractSlsbInvokerInterceptor extends JndiObjectLocator
		implements MethodInterceptor { 
	private boolean lookupHomeOnStartup = true;
	private boolean cacheHome = true;
	private boolean exposeAccessContext = false;
	 * The EJB's home object, potentially cached. 
	 * The type must be Object as it could be either EJBHome or EJBLocalHome. 
	private Object cachedHome;
See Code Examples for Spring Framework JndiObjectLocator Methods: