Richfaces Examples: Richfaces Showcase Application 4.1.0.20110805-M1

org.richfaces.demo.push
Class JMSMessageProducer

java.lang.Object
  extended by org.richfaces.demo.push.JMSMessageProducer
All Implemented Interfaces:
MessageProducer

public class JMSMessageProducer
extends Object
implements MessageProducer

Sends message to JMS topic.

Author:
Lukas Fryc

Field Summary
static String PUSH_JMS_TOPIC
           
 
Constructor Summary
JMSMessageProducer()
           
 
Method Summary
 int getInterval()
          Interval which will be producer sleeping after last message sent before start of sending of next message.
 void sendMessage()
          Sends a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUSH_JMS_TOPIC

public static final String PUSH_JMS_TOPIC
See Also:
Constant Field Values
Constructor Detail

JMSMessageProducer

public JMSMessageProducer()
Method Detail

sendMessage

public void sendMessage()
                 throws Exception
Description copied from interface: MessageProducer
Sends a message.

Specified by:
sendMessage in interface MessageProducer
Throws:
Exception - any exception which was thrown when trying to send message.

getInterval

public int getInterval()
Description copied from interface: MessageProducer
Interval which will be producer sleeping after last message sent before start of sending of next message.

Specified by:
getInterval in interface MessageProducer
Returns:
interval in miliseconds

Richfaces Examples: Richfaces Showcase Application 4.1.0.20110805-M1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.