org.outerj.daisy.jms
Interface JmsClient
- public interface JmsClient
A JMS Client.
The purpose of the JMS client is:
- To have one location where the JMS connections are configured and established
(instead of having each component do that of its own).
- To automatically resume the JMS connection on failures, and hide these failures from
the clients. Ideally, the users of this JmsClient should not be aware whether the
connection with the JMS service is there or not. Message send calls should block
until the connection is back, and message delivery should automatically restart.
The current design and implementation is done keeping our reliance on OpenJMS in mind.
registerDurableTopicListener
public void registerDurableTopicListener(java.lang.String topicName,
java.lang.String subscriptionName,
javax.jms.MessageListener listener)
throws java.lang.Exception
- Throws:
java.lang.Exception
registerTopicListener
public void registerTopicListener(java.lang.String topicName,
javax.jms.MessageListener listener)
throws java.lang.Exception
- Throws:
java.lang.Exception
registerQueueListener
public void registerQueueListener(java.lang.String queueName,
javax.jms.MessageListener listener)
throws java.lang.Exception
- Throws:
java.lang.Exception
unregisterListener
public void unregisterListener(javax.jms.MessageListener listener)
getTopicSender
public Sender getTopicSender(java.lang.String topicName)
getQueueSender
public Sender getQueueSender(java.lang.String topicName)
unregisterSender
public void unregisterSender(Sender sender)
Copyright © -2005 . All Rights Reserved.