Examples of send()


Examples of org.exoplatform.frameworks.ftpclient.data.FtpDataTransiver.send()

         sendCommand(String.format("%s %s", FtpConst.Commands.CMD_STOR, path));

         int reply = getReply();
         if (reply == FtpConst.Replyes.REPLY_125)
         {
            dataTransiver.send(fileContent);
            reply = getReply();
         }
         return reply;
      }
      catch (Exception exc)
View Full Code Here

Examples of org.fao.geonet.util.JavaMailer.send()

            if(StringUtils.isEmpty(NOREPLY)) {
                NOREPLY = "noreply@geonetwork-opensource.org";
            }
            if(StringUtils.isNotEmpty(metadataEmail)) {
                if(StringUtils.isNotEmpty(to)) {
                    mailer.send(subject, body, null, NOREPLY, to, metadataEmail);
                }
                else {
                    mailer.send(subject, body, null, NOREPLY, metadataEmail);
                }
            }
View Full Code Here

Examples of org.fao.geonet.util.MailSender.send()

            SettingManager settingManager = geonetContext.getBean(SettingManager.class);
            String host = settingManager.getValue("system/feedback/mailServer/host");
            String port = settingManager.getValue("system/feedback/mailServer/port");
            String to = responseHandler.substring(Protocol.EMAIL.toString().length());
            MailSender sender = new MailSender(serviceContext);
            sender.send(host, Integer.parseInt(port),
                    settingManager.getValue("system/feedback/mailServer/username"),
                    settingManager.getValue("system/feedback/mailServer/password"),
                    settingManager.getValueAsBool("system/feedback/mailServer/ssl"),
                    "noreply@geonetwork.org",
                    "GeoNetwork CSW Server", to, null, "Asynchronous CSW Harvest results delivery", harvestResponse);
View Full Code Here

Examples of org.fcrepo.server.messaging.JMSManager.send()

    public void testVMMessage() throws Exception {
        String topic = "jmsmanager.test";
        properties.setProperty("topic." + topic, topic);
        JMSManager jmsMgr = new JMSManager(properties);
        jmsMgr.listen(topic, this);
        jmsMgr.send(topic, messageText);
        checkMessage(topic, DestinationType.Topic, messageText);
        jmsMgr.close();
    }

    @Ignore("Broker thread in test occationally fails to start")
View Full Code Here

Examples of org.fenixedu.academic.domain.util.email.EmailBean.send()

        emailBean.setReplyTos(systemSender.getConcreteReplyTos());
        emailBean.setRecipients(Collections.<Recipient> emptyList());
        emailBean.setSubject(errorReportSubject);
        emailBean.setMessage(errorReportBody);
        emailBean.setBccs(errorReportAddress);
        emailBean.send();
    }
}
View Full Code Here

Examples of org.foo.hub.api.Hub.send()

        try {

          //B// Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

          Hub hub = (Hub) ctx.getService(reference);
          hub.send(new TextMessage(".*", "Testing Testing 1, 2, 3..."));

        } catch (Throwable e) {
          e.printStackTrace();
        } finally {

View Full Code Here

Examples of org.fusesource.stomp.client.BlockingConnection.send()

        for (int i = 0; i < numberOfMessages; i++) {
            StompFrame frame = new StompFrame(SEND);
            frame.addHeader(DESTINATION, StompFrame.encodeHeader("/queue/test"));
            frame.addHeader(MESSAGE_ID, StompFrame.encodeHeader("msg:" + i));
            frame.content(utf8("Important Message " + i));
            producerConnection.send(frame);
        }

        mock.await(5, TimeUnit.SECONDS);
        mock.assertIsSatisfied();
    }
View Full Code Here

Examples of org.hampelratte.svdrp.Connection.send()

    try {
      logger.trace("New connection");
      connection = new Connection(mIp, mPort, timeout, charset);
      logger.debug("Try to send VDR command: {}", cmd.getCommand());

      res = connection.send(cmd);
      logger.debug("Recived Message from VDR: {}", res.getMessage());
    } catch (Exception e) {
      logger.error("Could not connect to VDR on {}: {}", mIp + ":" + mPort,
          e);
    } finally {
View Full Code Here

Examples of org.hornetq.api.core.client.ClientProducer.send()

               final String propName = "myprop";
               message.putStringProperty(propName, "Hello sent at " + new Date());
               System.out.println("Sending the message.");

               producer.send(message);

               ClientConsumer messageConsumer = session.createConsumer(queueName);
               session.start();

               ClientMessage messageReceived = messageConsumer.receive(1000);
View Full Code Here

Examples of org.hornetq.core.client.impl.ClientProducerImpl.send()

            {
               for (int i = 0 ; i < TOTAL_MSG; i++)
               {
                  ClientMessage msg = session.createMessage(false);
                  msg.getBodyBuffer().writeBytes(new byte[1024]);
                  prod.send(msg);
                  msgs.incrementAndGet();
               }
            }
            catch (Throwable e)
            {
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.