Examples of send()


Examples of org.xmlBlaster.jms.XBMessageProducer.send()

         if (initialFilesLocation != null) {
            msg.setStringProperty(INITIAL_FILES_LOCATION, initialFilesLocation);
            msg.setStringProperty(INITIAL_DATA_ID, dumpId);
         }
         msg.setInputStream(fis);
         producer.send(msg);
         // make a version copy if none exists yet
         boolean doDelete = true;
         if (currentVersion != null) {
            String backupFileName = this.initialCmdPath + File.separator + VersionTransformerCache.buildFilename(this.replPrefix, currentVersion);
            File backupFile = new File(backupFileName);
View Full Code Here

Examples of org.zeromq.ZFrame.send()

            Socket worker = ctx.createSocket(ZMQ.REQ);
            worker.connect(String.format("ipc://%s-localbe.ipc", self));

            //  Tell broker we're ready for work
            ZFrame frame = new ZFrame(WORKER_READY);
            frame.send(worker, 0);

            while (true) {
                //  Send request, get reply
                ZMsg msg = ZMsg.recvMsg(worker, 0);
                if (msg == null)
View Full Code Here

Examples of org.zeromq.ZMQ.Socket.send()

        final String addr = receiverUrl.toString().replaceFirst(
            "zmq:/?/?", "");
        final Socket socket = ZMQ.getSocket(org.zeromq.ZMQ.PUSH);
        try {
          socket.connect(addr);
          socket.send(zmqType, org.zeromq.ZMQ.SNDMORE);
          socket.send(senderUrl, org.zeromq.ZMQ.SNDMORE);
          socket.send(token, org.zeromq.ZMQ.SNDMORE);
          socket.send(message, 0);
         
        } catch (final Exception e) {
View Full Code Here

Examples of org.zeromq.ZMsg.send()

  public void testZmqDealer() throws Exception {
    final ZMQ.Context context = ZMQ.context(1);
    final ZMQ.Socket socket = context.socket(ZMQ.DEALER);
    socket.connect("tcp://" + serverAddress.getHostName() + ":" + serverAddress.getPort());
    final ZMsg request = ZMsg.newStringMsg("envelope", "", "hello", "world");
    request.send(socket, false);

    final ZMTPIncomingMessage receivedRequest = incomingMessages.take();
    final ZMTPMessage receivedMessage = receivedRequest.getMessage();
    receivedRequest.getSession().getChannel().write(receivedMessage);
View Full Code Here

Examples of placeholder.http.HttpRequest.send()

    // request
    try {
      HttpRequest request = new HttpRequest("http://62.75.144.112/~heiko/placeholder/set.php", HttpMethod.POST);
      request.addPostFields(postFields);
      request.send();
      if (request.getConnection().getResponseCode() != 200) {
        throw new HttpWebsiteResultQueueFlushException("Error while sending website results to server.", request, request.getConnection().getResponseMessage(), request.getConnection().getResponseCode());
      }
    } catch (Exception e) {
      throw new WebsiteResultQueueFlushException(e);
View Full Code Here

Examples of pt.opensoft.mail.SimpleEmail.send()

        StringBuffer message = new StringBuffer();
        message.append("Foi lan�ada uma excep��o pelo Processo ").append(getNameProcess()).append(" causando o fim da sua execu��o � seguinte data: ").append(new DateTime(new java.util.Date()).formatDateTime());
        message.append("\n\nStack Trace:\n");
        message.append("\t").append(StringUtil.toString(e));
            email.setMsg(message.toString());
            email.send();
        } catch (Exception mailException) {
            logger.warning("Error sending exception mail: " + mailException);
        }
  }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.util.EMail.send()

        EMail email = null;
        try {
            if (!request.getServerName().equals("localhost")) {
                email = new EMail("mail.adm", "erro@dot.ist.utl.pt");
                String aluminiEmailAddress = Installation.getInstance().getInstituitionalEmailAddress("alumni");
                email.send(aluminiEmailAddress, "Erro Registo Alumni", mailBody.toString());
            }
        } catch (Throwable t) {
            logger.error(t.getMessage(), t);
            throw new Error(t);
        }
View Full Code Here

Examples of ptolemy.actor.IOPort.send()

                    if (_debugging) {
                        _debug("** Transferring parameter to output: "
                                + port.getName());
                    }

                    port.send(0, ((Variable) attribute).getToken());
                } else if (attribute instanceof Settable) {
                    if (_debugging) {
                        _debug("** Transferring parameter as string to output: "
                                + port.getName());
                    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort.send()

                        getDirector().stop();
                    }
                }

                if (typ.equals("boolean")) {
                    port.send(0, new BooleanToken(((Boolean) ret)
                            .booleanValue()));
                } else if (typ.equals("double")) {
                    port.send(0, new DoubleToken(((Double) ret).doubleValue()));
                } else if (typ.equals("int")) {
                    port.send(0, new IntToken(((Integer) ret).intValue()));
View Full Code Here

Examples of quickfix.Session.send()

        if (session == null) {
            exchange.setException(new IllegalStateException("Unknown session: " + messageSessionID));
            return;
        }
       
        session.send(message);
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.