com.consol.citrus.jms
Class AbstractJmsAdapter

java.lang.Object
  extended by com.consol.citrus.jms.AbstractJmsAdapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
JmsMessageReceiver, JmsMessageSender, JmsReplyMessageSender

public abstract class AbstractJmsAdapter
extends Object
implements org.springframework.beans.factory.InitializingBean

Basic adapter class for JMS communication. The adapter uses Spring's JmsTemplate.

Author:
Christoph Deppisch

Constructor Summary
AbstractJmsAdapter()
           
 
Method Summary
 void afterPropertiesSet()
          Initialize default JMS template if not already set.
 TestActor getActor()
          Gets the actor.
 javax.jms.ConnectionFactory getConnectionFactory()
          Gets the connection factory.
 String getDefaultDestinationName()
          Gets the destination name.
 javax.jms.Destination getDestination()
          Gets the destination.
 String getDestinationName()
          Gets the destination name.
 org.springframework.jms.support.destination.DestinationResolver getDestinationResolver()
          Sets the destination resolver.
 org.springframework.integration.jms.JmsHeaderMapper getHeaderMapper()
          Gets the JMS header mapper.
 org.springframework.jms.core.JmsTemplate getJmsTemplate()
          Gets the JMS template.
 org.springframework.jms.support.converter.MessageConverter getMessageConverter()
          Gets the JMS message converter.
 boolean isPubSubDomain()
          Does domain use topics instead of queues.
 void setActor(TestActor actor)
          Sets the actor.
 void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
          Sets the connection factory.
 void setDestination(javax.jms.Destination destination)
          Sets the destination.
 void setDestinationName(String destinationName)
          Sets the destination name.
 void setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
          Gets the destination resolver.
 void setHeaderMapper(org.springframework.integration.jms.JmsHeaderMapper headerMapper)
          Sets the JMS header mapper.
 void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
          Sets the JMS template.
 void setMessageConverter(org.springframework.jms.support.converter.MessageConverter messageConverter)
          Sets the JMS message converter.
 void setPubSubDomain(boolean pubSubDomain)
          Sets if domain uses topics instead of queues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJmsAdapter

public AbstractJmsAdapter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Initialize default JMS template if not already set.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

isPubSubDomain

public boolean isPubSubDomain()
Does domain use topics instead of queues.

Returns:
the pubSubDomain

setPubSubDomain

public void setPubSubDomain(boolean pubSubDomain)
Sets if domain uses topics instead of queues.

Parameters:
pubSubDomain - the pubSubDomain to set

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()
Gets the connection factory.

Returns:
the connectionFactory

setConnectionFactory

public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Sets the connection factory.

Parameters:
connectionFactory - the connectionFactory to set

getDestination

public javax.jms.Destination getDestination()
Gets the destination.

Returns:
the destination

setDestination

public void setDestination(javax.jms.Destination destination)
Sets the destination.

Parameters:
destination - the destination to set

getDefaultDestinationName

public String getDefaultDestinationName()
Gets the destination name.

Returns:
the destinationName

getDestinationName

public String getDestinationName()
Gets the destination name.

Returns:
the destinationName

setDestinationName

public void setDestinationName(String destinationName)
Sets the destination name.

Parameters:
destinationName - the destinationName to set

getDestinationResolver

public org.springframework.jms.support.destination.DestinationResolver getDestinationResolver()
Sets the destination resolver.

Returns:
the destinationResolver

setDestinationResolver

public void setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
Gets the destination resolver.

Parameters:
destinationResolver - the destinationResolver to set

getMessageConverter

public org.springframework.jms.support.converter.MessageConverter getMessageConverter()
Gets the JMS message converter.

Returns:
the messageConverter

setMessageConverter

public void setMessageConverter(org.springframework.jms.support.converter.MessageConverter messageConverter)
Sets the JMS message converter.

Parameters:
messageConverter - the messageConverter to set

getHeaderMapper

public org.springframework.integration.jms.JmsHeaderMapper getHeaderMapper()
Gets the JMS header mapper.

Returns:
the headerMapper

setHeaderMapper

public void setHeaderMapper(org.springframework.integration.jms.JmsHeaderMapper headerMapper)
Sets the JMS header mapper.

Parameters:
headerMapper - the headerMapper to set

setJmsTemplate

public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
Sets the JMS template.

Parameters:
jmsTemplate - the jmsTemplate to set

getJmsTemplate

public org.springframework.jms.core.JmsTemplate getJmsTemplate()
Gets the JMS template.

Returns:
the jmsTemplate

getActor

public TestActor getActor()
Gets the actor.

Returns:
the actor the actor to get.

setActor

public void setActor(TestActor actor)
Sets the actor.

Parameters:
actor - the actor to set


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.