RichFaces Showcase 4.1.0.20111101-M4

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
 void finalizeProducer()
          Finalizes the producer (frees all associated resources)
 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

finalizeProducer

public void finalizeProducer()
Description copied from interface: MessageProducer
Finalizes the producer (frees all associated resources)

Specified by:
finalizeProducer in interface MessageProducer

RichFaces Showcase 4.1.0.20111101-M4

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