Package org.springframework.remoting

Examples of org.springframework.remoting.RemoteLookupFailureException


      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);
    }
  }
View Full Code Here


    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;
  }
View Full Code Here

  protected Object refreshAndRetry(MethodInvocation invocation) throws Throwable {
    try {
      refreshHome();
    }
    catch (NamingException ex) {
      throw new RemoteLookupFailureException("Failed to locate remote EJB [" + getJndiName() + "]", ex);
    }
    return doInvoke(invocation);
  }
View Full Code Here

    }

    // invoke the superclass' generic create method
    Object ejbInstance = create();
    if (!(ejbInstance instanceof EJBObject)) {
      throw new RemoteLookupFailureException(
          "EJB instance [" + ejbInstance + "] is not a Remote Stateless Session Bean");
    }
    // if it throws remote exception (wrapped in InvocationTargetException), retry?

    if (logger.isDebugEnabled()) {
View Full Code Here

    try {
      ejb = getSessionBeanInstance();
      return RmiClientInterceptorUtils.invokeRemoteMethod(invocation, ejb);
    }
    catch (NamingException ex) {
      throw new RemoteLookupFailureException("Failed to locate remote EJB [" + getJndiName() + "]", ex);
    }
    catch (InvocationTargetException ex) {
      Throwable targetEx = ex.getTargetException();
      if (targetEx instanceof RemoteException) {
        RemoteException rex = (RemoteException) targetEx;
View Full Code Here

                  this.portQName + "] - " + (!isImpl ? "not" : "") + " directly implemented");
            }
          }

          if (!(remoteObj instanceof Stub)) {
            throw new RemoteLookupFailureException("Port stub of class [" + remoteObj.getClass().getName() +
                "] is not a valid JAX-RPC stub: it does not implement interface [javax.xml.rpc.Stub]");
          }
          Stub stub = (Stub) remoteObj;

          // Apply properties to JAX-RPC stub.
          preparePortStub(stub);

          // Allow for custom post-processing in subclasses.
          postProcessPortStub(stub);

          this.portStub = remoteObj;
        }

        else {
          // No JAX-RPC-compliant port interface -> using JAX-RPC dynamic calls.
          if (logger.isDebugEnabled()) {
            logger.debug("Using JAX-RPC dynamic calls for JAX-RPC port [" + this.portQName + "]");
          }
        }

        this.serviceToUse = service;
      }
      catch (ServiceException ex) {
        throw new RemoteLookupFailureException(
            "Failed to initialize service for JAX-RPC port [" + this.portQName + "]", ex);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.remoting.RemoteLookupFailureException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.