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

This code example shows how to use the following methods:
		if (this.homeInterface != null) { 
			try { 
				homeObject = PortableRemoteObject.narrow(homeObject, this.homeInterface); 
			} 
			catch (ClassCastException ex) { 
				throw new RemoteLookupFailureException( 
						"Could not narrow EJB home stub to home interface [" + this.homeInterface.getName() + "]", ex); 
			} 
		} 
		return homeObject; 
	} 
 
	/** 
	 * Check for EJB3-style home object that serves as EJB component directly. 
	 */ 
	@Override 
	protected Method getCreateMethod(Object home) throws EjbAccessException { 
		if (this.homeAsComponent) { 
			return null; 
		} 
5
CodeRank
This code example shows how to use the following methods:
			if (getServiceInterface() != null && !(stub instanceof RmiInvocationHandler)) { 
				try { 
					stub = PortableRemoteObject.narrow(stub, getServiceInterface()); 
				} 
				catch (ClassCastException ex) { 
					throw new RemoteLookupFailureException( 
							"Could not narrow RMI stub to service interface [" + getServiceInterface().getName() + "]", ex); 
				} 
			} 
			return stub; 
		} 
		catch (NamingException ex) { 
			throw new RemoteLookupFailureException("JNDI lookup for RMI service [" + getJndiName() + "] failed", ex); 
		} 
	} 
 
	/** 
	 * Return the RMI stub to use. Called for each invocation. 
	 * <p>The default implementation returns the stub created on initialization, 
	 * if any. Else, it invokes {@link #lookupStub} to get a new stub for 
4
CodeRank
This code example shows how to use the following methods:
			stubProperties.put(BindingProvider.SOAPACTION_URI_PROPERTY, soapActionUri);
		} 
		stubProperties.putAll(getCustomProperties());
		if (!stubProperties.isEmpty()) {
			if (!(stub instanceof BindingProvider)) {
				throw new RemoteLookupFailureException("Port stub of class [" + stub.getClass().getName() +
						"] is not a customizable JAX-WS stub: it does not implement interface [javax.xml.ws.BindingProvider]"); 
			} 
			((BindingProvider) stub).getRequestContext().putAll(stubProperties);
		} 
	} 
 
	/** 
	 * Return the underlying JAX-WS port stub that this interceptor delegates to 
	 * for each method invocation on the proxy. 
	 */ 
	protected Object getPortStub() {
		return this.portStub;
	} 
 
4
CodeRank