Examples of send()


Examples of org.springframework.integration.core.SubscribableChannel.send()

    SplunkData data = new SplunkData("spring", "spring:example");
    data.setCommonDesc("description");

    Message<SplunkData> msg = MessageBuilder.withPayload(data).build();
    channel.send(msg);


  }
}
View Full Code Here

Examples of org.springframework.integration.smpp.core.SmesMessageSpecification.send()

      SmesMessageSpecification specification = applyDefaultsIfNecessary(
          SmesMessageSpecification.fromMessage(this.smppSession, message)
              .setTimeFormatter(this.timeFormatter));

      List<String> smsMessageId = specification.send();
      logger.debug( "sent message : "+message.getPayload());
      logger.debug("message ID(s) for the sent message: " + smsMessageId);
    } catch (Exception e) {
      throw new RuntimeException("Exception in trying to process the inbound SMPP message", e);
    }
View Full Code Here

Examples of org.springframework.jms.core.JmsTemplate.send()

                        return resolv.resolveDestinationName(session,
                                                             jmsConfig.getReplyDestination(),
                                                             false);
                    }
                });
                jmsTemplate.send(destination, messageCreator);
            }
        };

        t.start();
       
View Full Code Here

Examples of org.springframework.mail.MailSender.send()

        msg.setSubject("Test Message");
        msg.setFrom("test@apress.com");
        msg.setText(text);
       
        MailSender sender = getMailSender();
        sender.send(msg);
    }
   
}
View Full Code Here

Examples of org.springframework.mail.javamail.JavaMailSender.send()

    mail.setFrom(mail.getFrom());
    mail.setTo(eMail);
    mail.setSubject(mail.getSubject());
    mail.setText("�˺ţ�" + userName + "\n" + "���룺" + passWord);
    try {
      sender.send(mail);
    } catch (MailException e) {
      throw new MyMailException("Mail timeout!");
    }
  }
View Full Code Here

Examples of org.springframework.mail.javamail.JavaMailSenderImpl.send()

                    helper.setTo(to);
                    helper.setFrom(task.getSender());
                    helper.setSubject(task.getSubject());
                    helper.setText(task.getTextBody(), task.getHtmlBody());

                    sender.send(message);

                    execution.setStatus(Status.SENT.name());

                    StringBuilder report = new StringBuilder();
                    switch (task.getTraceLevel()) {
View Full Code Here

Examples of org.springframework.messaging.MessageChannel.send()

    File file = File.createTempFile("temp", "txt");
    Message<File> message = MessageBuilder.withPayload(file)
            .setHeader("customer", "cust1")
            .build();
    try {
      channel.send(message);
    }
    catch (MessagingException e) {
      assertThat(e.getCause().getCause().getCause(), instanceOf(UnknownHostException.class));
      assertTrue(e.getCause().getCause().getCause().getMessage().startsWith("host.for.cust1"));
    }
View Full Code Here

Examples of org.springframework.messaging.SubscribableChannel.send()

    final SubscribableChannel replyChannel = this.findOrCreateRequestReplyChannel("replier." + name);
    ((SubscribableChannel) replies).subscribe(new MessageHandler() {

      @Override
      public void handleMessage(Message<?> message) throws MessagingException {
        replyChannel.send(message);
      }
    });
  }

  private synchronized ExecutorChannel findOrCreateRequestReplyChannel(String name) {
View Full Code Here

Examples of org.springframework.ws.transport.FaultAwareWebServiceConnection.send()

        jettyServer.start();
        FaultAwareWebServiceConnection connection =
                (FaultAwareWebServiceConnection) messageSender.createConnection(connectionUri);
        SOAPMessage request = createRequest();
        try {
            connection.send(new SaajSoapMessage(request));
            connection.receive(messageFactory);
            Assert.assertTrue("Response has no fault", connection.hasFault());
        }
        finally {
            connection.close();
View Full Code Here

Examples of org.springframework.ws.transport.WebServiceConnection.send()

            if (messageSender.supports(replyEpr.getAddress())) {
                supported = true;
                WebServiceConnection connection = null;
                try {
                    connection = messageSender.createConnection(replyEpr.getAddress());
                    connection.send(messageContext.getResponse());
                    break;
                }
                finally {
                    messageContext.clearResponse();
                    if (connection != null) {
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.