Example usage for javax.jms MessageListener interface-usage

List of usage examples for javax.jms MessageListener interface-usage

Introduction

In this page you can find the example usage for javax.jms MessageListener interface-usage.

Usage

From source file eu.learnpad.simulator.mon.impl.ComplexEventProcessorImpl.java

public class ComplexEventProcessorImpl extends ComplexEventProcessor implements MessageListener {

    private String topic;
    private TopicConnection connection;
    private Topic connectionTopic;
    private TopicSession publishSession;

From source file SelectorTalk.java

public class SelectorTalk implements javax.jms.MessageListener {
    private static final String DEFAULT_BROKER_NAME = "tcp://localhost:61616";
    private static final String PROPERTY_NAME = "Department";
    private static final String DEFAULT_PASSWORD = "password";
    private static final int MESSAGE_LIFESPAN = 1800000; // milliseconds (30 minutes)

From source file it.cnr.isti.labsedc.glimpse.impl.ComplexEventProcessorImpl.java

public class ComplexEventProcessorImpl extends ComplexEventProcessor implements MessageListener {

    private String topic;
    private TopicConnection connection;
    private Topic connectionTopic;
    private TopicSession publishSession;

From source file com.datatorrent.lib.io.jms.AbstractJMSInputOperator.java

/**
 * This is the base implementation of a JMS input operator.<br/>
 * Subclasses must implement the method that converts JMS messages into tuples for emission.
 * <p/>
 * The operator acts as a listener for JMS messages. When there is a message available in the message bus,
 * {@link #onMessage(Message)} is called which buffers the message into a holding buffer. This is asynchronous.<br/>

From source file Replier.java

public class Replier implements javax.jms.MessageListener {
    private static final String DEFAULT_BROKER_NAME = "tcp://localhost:61616";
    private static final String DEFAULT_USER_NAME = "SampleReplier";
    private static final String DEFAULT_PASSWORD = "password";
    private static final String DEFAULT_QUEUE = "Q1";
    private static final String DEFAULT_MODE = "uppercase";

From source file org.springframework.jms.listener.adapter.AbstractAdaptableMessageListener.java

/**
 * An abstract JMS {@link MessageListener} adapter providing the necessary
 * infrastructure to extract the payload of a JMS {@link Message}.
 *
 * @author Juergen Hoeller
 * @author Stephane Nicoll

From source file dk.netarkivet.harvester.harvesting.monitor.HarvestMonitor.java

/**
 * Listens for {@link CrawlProgressMessage}s on the proper JMS channel, and
 * stores information to be presented in the monitoring console.
 */
public class HarvestMonitor extends HarvesterMessageHandler implements MessageListener, CleanupIF {

From source file org.apache.apex.malhar.lib.io.jms.AbstractJMSInputOperator.java

/**
 * This is the base implementation of a JMS input operator.<br/>
 * Subclasses must implement the method that converts JMS messages into tuples for emission.
 * <p/>
 * The operator acts as a listener for JMS messages. When there is a message available in the message bus,
 * {@link #onMessage(Message)} is called which buffers the message into a holding buffer. This is asynchronous.<br/>

From source file be.fedict.trust.service.bean.DownloaderMDB.java

/**
 * Downloader Message Driven Bean.
 * 
 * @author Frank Cornelis
 * 
 */

From source file com.stratelia.silverpeas.notificationserver.channel.smtp.SMTPListener.java

@MessageDriven(activationConfig = {
        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
        @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "AutoAcknowledge"),
        @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "CHANNEL='SMTP'"),
        @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:/queue/notificationsQueue") }, description = "Message driven bean to send notifications by email")
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)