Package org.xooof.xmldispatcher.interfaces

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherCommException


            }
          }
        }
        else
        {
          throw new XMLDispatcherCommException(new RuntimeException("Timeout waiting for reply"));
        }
      }
      else
      {
        return null;
      }
    }
    catch(EnvelopeMarshallerException eme)
    {
      throw new XMLDispatcherCommException(eme);
    }
    catch(JMSException jmse)
    {
      throw new XMLDispatcherCommException(jmse);
    }
  }
View Full Code Here


        queueConnection = null;
      }
    }
    catch(JMSException e)
    {
      throw new XMLDispatcherCommException(e);
    }
  }
View Full Code Here

          }
        }
        else
        {
          // any other error
          throw new XMLDispatcherCommException("HTTP error " +
                                               httpResponse.getStatusCode() +
                                               ": " +
                                               httpResponse.getReasonLine());
        }
      }
    }
    catch(ModuleException e)
    {
      throw new XMLDispatcherCommException(e);
    }
    catch(ParseException e)
    {
      throw new XMLDispatcherCommException(e);
    }
    catch(java.io.IOException e)
    {
      throw new XMLDispatcherCommException(e);
    }
    catch(EnvelopeMarshallerException e)
    {
      throw new XMLDispatcherCommException("error unmarshalling error reply",e);
    }
  }
View Full Code Here

      sessionData = rply.sessionData;
      return rply.xml;
    }
    catch(RemoteException e)
    {
      throw new XMLDispatcherCommException(e);
    }
  }
View Full Code Here

      sessionData = rply.sessionData;
      return rply.xml;
    }
    catch(RemoteException e)
    {
      throw new XMLDispatcherCommException(e);
    }
  }
View Full Code Here

      sessionData = rply.sessionData;
      return rply.xml;
    }
    catch(RemoteException e)
    {
      throw new XMLDispatcherCommException(e);
    }
  }
View Full Code Here

          i++;
          instanceId = args[i];
        }
        else
        {
          throw new XMLDispatcherCommException("Unexpected argument: '"+args[i]+"'");
        }
      }   
     
      if (verb == null || appName == null ||
          className == null || methodName == null)
        {
          throw new XMLDispatcherCommException("missing argument");
        }
     
      input = new BufferedReader(new InputStreamReader(System.in));
      xmlRqst = new StringBuffer();
      while (-1 != (c = input.read()))
      {
        xmlRqst.append((char)c);
      }
     
      xdCli = new XMLDispatcherEJBClient(appName);
   
      if (verb.equals("DispatchClassMethodXML"))
      {
        xmlRply = xdCli.dispatchClassMethodXML(className,methodName,xmlRqst.toString());
      }
      else if (verb.equals("DispatchNewInstanceMethodXML"))
      {
        xmlRply = xdCli.dispatchNewInstanceMethodXML(className,methodName,xmlRqst.toString());
      }
      else if (verb.equals("DispatchInstanceMethodXML"))
      {
        if (instanceId == null)
        {
          throw new XMLDispatcherCommException("Missing instanceId");
        }
        xmlRply = xdCli.dispatchInstanceMethodXML(className,methodName,instanceId,xmlRqst.toString());
      }
      else
      {
        throw new XMLDispatcherCommException("Invalid verb: "+verb);
      }
      System.out.print(xmlRply);
      System.exit(0);
    }
    catch(Exception e)
View Full Code Here

      {
        doWorkMpFormData(request,response);
      }
      else
      {
        throw new XMLDispatcherCommException("Unsupported content type: " + request.getContentType());
      }
    }
    catch(XMLDispatcherCommException e)
    {
      writeError(response,e);
View Full Code Here

    {
      return null;
    }
    else
    {
      throw new XMLDispatcherCommException("field " + name + " cannot be null");
    }
  }
View Full Code Here

               request,
               response);
      }
      else
      {
        throw new XMLDispatcherCommException("Error processing multipart/form-data: content length not available: " + dataLength);
      }
    }
    catch(HTTPClient.ParseException e)
    {
      throw new XMLDispatcherCommException("Error processing multipart/form-data",e);
    }
  }
View Full Code Here

TOP

Related Classes of org.xooof.xmldispatcher.interfaces.XMLDispatcherCommException

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.