| java.lang.Object org.getahead.dwrdemo.pubsub.JmsTest
JmsTest | public class JmsTest (Code) | | A demo of the pub/sub side of JMS.
Currently DWR does not support point-to-point JMS because there doesn't seem
much point - web clients are inherently fickle, so getting the address of a
browser out of JNDI seems silly
author: Joe Walker [joe at getahead dot ltd dot uk] |
Field Summary | |
final protected static Log | log | protected MessageConsumer | topicConsumer |
Constructor Summary | |
public | JmsTest() |
log | final protected static Log log(Code) | | The log stream
|
topicConsumer | protected MessageConsumer topicConsumer(Code) | | The route to getting to messages sent to the topic
|
JmsTest | public JmsTest() throws JMSException(Code) | | We start open
|
close | public synchronized void close() throws JMSException(Code) | | Close down the JMS connection
This method could be exported to the web if needed, but it probably
doesn't make much sense unless it's in an admin role
|
getConnection | protected Connection getConnection() throws JMSException(Code) | | Generally this would be done by JNDI etc
|
getTopic | protected Topic getTopic() throws JMSException(Code) | | Generally this would be done by JNDI etc
|
open | protected synchronized void open() throws JMSException(Code) | | Setup JMS and create a subscriber listener
This method could be exported to the web if needed, but it probably
doesn't make much sense unless it's in an admin role
|
publish | public synchronized void publish(String data) throws JMSException(Code) | | Exported method to publish a message to a topic
|
|
|