Examples of onMessage()


Examples of org.hornetq.api.core.client.MessageHandler.onMessage()

                     return originalLoader;
                  }
               });
               try
               {
                  theHandler.onMessage(message);
               }
               finally
               {
                  AccessController.doPrivileged(new PrivilegedAction<Object>()
                  {
View Full Code Here

Examples of org.hornetq.api.core.client.MessageHandler.onMessage()

               });

               onMessageThread = Thread.currentThread();
               try
               {
                  theHandler.onMessage(message);
               }
               finally
               {
                  try
                  {
View Full Code Here

Examples of org.hornetq.api.core.client.MessageHandler.onMessage()

                     return originalLoader;
                  }
               });
               try
               {
                  theHandler.onMessage(message);
               }
               finally
               {
                  AccessController.doPrivileged(new PrivilegedAction<Object>()
                  {
View Full Code Here

Examples of org.hornetq.api.core.client.MessageHandler.onMessage()

                     return originalLoader;
                  }
               });
               try
               {
                  theHandler.onMessage(message);
               }
               finally
               {
                  AccessController.doPrivileged(new PrivilegedAction<Object>()
                  {
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.chatbot.Chatbot.onMessage()

        Chatbot bot = workgroup.getChatBot();
        if (bot != null) {
            // Get the chatbot session of the user (create one if necessary)
            ChatbotSession session = bot.getSession(packet.getFrom(), true);
            // Let the bot process the received message
            bot.onMessage(session, packet);
        }
    }
}
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage()

    MessageProperties properties = new MessageProperties();
    properties.setContentType(MessageProperties.CONTENT_TYPE_TEXT_PLAIN);
    Message amqpMessage = new Message("Hello".getBytes(), properties);

    try {
      listener.onMessage(amqpMessage, mock(Channel.class));
    }
    catch (Exception e) {
      fail("should not have failed to process simple message but got " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.springframework.amqp.remoting.service.AmqpInvokerServiceExporter.onMessage()

        Address replyTo = new Address("fakeExchangeName", "fakeRoutingKey");
        MessageProperties messageProperties = new MessageProperties();
        messageProperties.setReplyToAddress(replyTo);
        Message message = messageConverter.toMessage(payload, messageProperties);

        serviceExporter.onMessage(message);

        Message resultMessage = sentSavingTemplate.getLastMessage();
        return messageConverter.fromMessage(resultMessage);
      }
    };
View Full Code Here

Examples of org.springframework.data.redis.connection.MessageListener.onMessage()

        ArgumentCaptor<MessageListener> messageListenerCaptor = ArgumentCaptor
                .forClass(MessageListener.class);
        verify(listenerContainer).addMessageListener(messageListenerCaptor.capture(), any(Collection.class));

        MessageListener messageListener = messageListenerCaptor.getValue();
        messageListener.onMessage(new DefaultMessage(null, null), null);
        messageListener.onMessage(new DefaultMessage(null, null), null);

        mock.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.onMessage()

        simpleFactory.getListenerContainers().get(0).getEndpoint();

    SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
    endpoint.setupListenerContainer(container);
    MessagingMessageListenerAdapter listener = (MessagingMessageListenerAdapter) container.getMessageListener();
    listener.onMessage(new StubTextMessage("failValidation"), mock(Session.class));
  }

  @Component
  static class ValidationBean {
View Full Code Here

Examples of org.vosao.business.mq.Subscriber.onMessage()

    if (subscribers.containsKey(message.getTopic())) {
      for (Class subscriberClass : subscribers.get(message.getTopic())) {
        try {
          Subscriber subscriber = (Subscriber)
              subscriberClass.newInstance();
          subscriber.onMessage(message);
        }
        catch (IllegalAccessException e) {
          logger.error(e.getMessage());
        }
        catch (InstantiationException 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.