org.figure8.join.core.messaging
Class ResolverJMSProducerBean

java.lang.Object
  extended by org.springframework.jms.core.support.JmsGatewaySupport
      extended by org.figure8.join.core.messaging.JMSProducerBean
          extended by org.figure8.join.core.messaging.ResolverJMSProducerBean
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ResolverJMSProducerBean
extends JMSProducerBean

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.figure8.join.core.messaging.JMSProducerBean
log
 
Fields inherited from class org.springframework.jms.core.support.JmsGatewaySupport
logger
 
Constructor Summary
ResolverJMSProducerBean()
          Creates a new instance of ResolverJMSProducerBean
ResolverJMSProducerBean(java.lang.String destinationName, JMSDestinationResolver resolver)
          Creates a new instance of ResolverJMSProducerBean
 
Method Summary
 javax.jms.Destination getDestination()
          Used the provided JMS destination resolver for remote destinations ...
 java.lang.String getDestinationName()
           
 JMSDestinationResolver getResolver()
           
 boolean isTopicFirst()
           
 void setDestinationName(java.lang.String destinationName)
           
 void setResolver(JMSDestinationResolver resolver)
           
 void setTopicFirst(boolean topicFirst)
           
 
Methods inherited from class org.figure8.join.core.messaging.JMSProducerBean
sendObjectMessage, sendObjectMessage, sendTextMessage, sendTextMessage
 
Methods inherited from class org.springframework.jms.core.support.JmsGatewaySupport
afterPropertiesSet, createJmsTemplate, getConnectionFactory, getJmsTemplate, initGateway, setConnectionFactory, setJmsTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverJMSProducerBean

public ResolverJMSProducerBean()
Creates a new instance of ResolverJMSProducerBean


ResolverJMSProducerBean

public ResolverJMSProducerBean(java.lang.String destinationName,
                               JMSDestinationResolver resolver)
Creates a new instance of ResolverJMSProducerBean

Parameters:
destinationName - The name of destination to resolve using resolver
resolver - The resolver for getting the required destination
Method Detail

isTopicFirst

public boolean isTopicFirst()
Returns:
Destination resolution policy flag. True means first topic, then queue

setTopicFirst

public void setTopicFirst(boolean topicFirst)
Parameters:
topicFirst - Destination resolution policy flag. Set to true if first topic, then queue

getDestinationName

public java.lang.String getDestinationName()
Returns:
The name of destination to get using resolver and to produce messages onto

setDestinationName

public void setDestinationName(java.lang.String destinationName)
Parameters:
destinationName - The name of destination to get using resolver and to produce messages onto

getResolver

public JMSDestinationResolver getResolver()
Returns:
The resolver of JMS destinations to use for getting destination to produce messages onto

setResolver

public void setResolver(JMSDestinationResolver resolver)
Parameters:
resolver - The resolver of JMS destinations to use for getting destination to produce messages onto

getDestination

public javax.jms.Destination getDestination()
Used the provided JMS destination resolver for remote destinations ...

Specified by:
getDestination in class JMSProducerBean
Returns:
The JMS destination to use when sending messages.


Copyright © 2005-2008 Join. All Rights Reserved.