Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » jms » support » destination » [javadoc | source]
org.springframework.jms.support.destination
abstract public class: JmsDestinationAccessor [javadoc | source]
java.lang.Object
   org.springframework.jms.support.JmsAccessor
      org.springframework.jms.support.destination.JmsDestinationAccessor

All Implemented Interfaces:
    InitializingBean

Direct Known Subclasses:
    JmsTemplate102, ServerSessionMessageListenerContainer, JmsTemplate, SimpleMessageListenerContainer, AbstractPollingMessageListenerContainer, DefaultMessageListenerContainer, DefaultMessageListenerContainer102, AbstractMessageListenerContainer, AbstractJmsListeningContainer, ServerSessionMessageListenerContainer102, SimpleMessageListenerContainer102

Base class for org.springframework.jms.core.JmsTemplate and other JMS-accessing gateway helpers, adding destination-related properties to JmsAccessor's common properties.

Not intended to be used directly. See org.springframework.jms.core.JmsTemplate .

Fields inherited from org.springframework.jms.support.JmsAccessor:
logger
Method from org.springframework.jms.support.destination.JmsDestinationAccessor Summary:
getDestinationResolver,   isPubSubDomain,   resolveDestinationName,   setDestinationResolver,   setPubSubDomain
Methods from org.springframework.jms.support.JmsAccessor:
afterPropertiesSet,   convertJmsAccessException,   createConnection,   createSession,   getConnectionFactory,   getSessionAcknowledgeMode,   isClientAcknowledge,   isSessionTransacted,   setConnectionFactory,   setSessionAcknowledgeMode,   setSessionAcknowledgeModeName,   setSessionTransacted
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jms.support.destination.JmsDestinationAccessor Detail:
 public DestinationResolver getDestinationResolver() 
    Return the DestinationResolver for this accessor (never null).
 public boolean isPubSubDomain() 
    Return whether the Publish/Subscribe domain (Topics ) is used. Otherwise, the Point-to-Point domain (Queues ) is used.
 protected Destination resolveDestinationName(Session session,
    String destinationName) throws JMSException 
 public  void setDestinationResolver(DestinationResolver destinationResolver) 
    Set the DestinationResolver that is to be used to resolve javax.jms.Destination references for this accessor.

    The default resolver is a DynamicDestinationResolver. Specify a JndiDestinationResolver for resolving destination names as JNDI locations.

 public  void setPubSubDomain(boolean pubSubDomain) 
    Configure the destination accessor with knowledge of the JMS domain used. Default is Point-to-Point (Queues).

    For JMS 1.0.2 based accessors, this tells the JMS provider which class hierarchy to use in the implementation of its operations. For JMS 1.1 based accessors, this setting does usually not affect operations. However, for both JMS versions, this setting tells what type of destination to resolve if dynamic destinations are enabled.