org.jboss.seam.jms
Interface DurableMessageManager

All Superinterfaces:
MessageManager, Serializable

@Durable
public interface DurableMessageManager
extends MessageManager


Method Summary
 TopicSubscriber createDurableSubscriber(String topic, String id, MessageListener... listeners)
          Creates a topic subscriber with the given ID and binds a message listener to it, if valid.
 TopicSubscriber createDurableSubscriber(Topic topic, String id, MessageListener... listeners)
          Creates a topic subscriber with the given ID and binds a message listener to it, if valid.
 void login(String clientId)
          Initializes the connection for this DurableMessageManager.
 void unsubscribe(String id)
          Unsubscribes a durable subscriber from the topic, with the given id.
 
Methods inherited from interface org.jboss.seam.jms.MessageManager
createBytesMessage, createJmsMessage, createMapMessage, createMessageConsumer, createMessageConsumer, createMessageConsumer, createMessageConsumer, createMessageProducer, createObjectMessage, createQueueBuilder, createQueueReceiver, createQueueSender, createQueueSender, createTextMessage, createTopicBuilder, createTopicPublisher, createTopicPublisher, createTopicSubscriber, createTopicSubscriber, createTopicSubscriber, getSession, lookupDestination, sendBytesToDestinations, sendBytesToDestinations, sendMapToDestinations, sendMapToDestinations, sendMessage, sendMessage, sendObjectToDestinations, sendObjectToDestinations, sendTextToDestinations, sendTextToDestinations
 

Method Detail

login

void login(String clientId)
Initializes the connection for this DurableMessageManager. Sets the ClientID for the underlying Connection

Parameters:
clientId -

createDurableSubscriber

TopicSubscriber createDurableSubscriber(String topic,
                                        String id,
                                        MessageListener... listeners)
Creates a topic subscriber with the given ID and binds a message listener to it, if valid.

MessageBuilder.createDurableSubscriber

Parameters:
topic - JNDI Location of the topic to subscribe to.
id - the client id for the subscriber. This ID should be unique, and should be used to shutdown the listener.
listener - The Message Listeners to be bound, if any.
Returns:
the resulting TopicSubscriber or null if an error occurred.

createDurableSubscriber

TopicSubscriber createDurableSubscriber(Topic topic,
                                        String id,
                                        MessageListener... listeners)
Creates a topic subscriber with the given ID and binds a message listener to it, if valid.

MessageBuilder.createDurableSubscriber

Parameters:
topic - the existing destination to reference.
id - the client id for the subscriber. This ID should be unique, and should be used to shutdown the listener.
listener - The Message Listeners to be bound, if any.
Returns:
the resulting TopicSubscriber or null if an error occurred.

unsubscribe

void unsubscribe(String id)
Unsubscribes a durable subscriber from the topic, with the given id.

Parameters:
id - the id of the subscriber.


Copyright © 2011 Seam Framework. All Rights Reserved.