Class JmsSettings
java.lang.Object
com.northconcepts.datapipeline.core.DataObject
com.northconcepts.datapipeline.jms.JmsSettings
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.core.DataObject
id, log, name, TIMESTAMP_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionJmsSettings(String name, JmsDestinationType type) JmsSettings(String instanceName, JmsDestinationType type, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionaddExceptionProperties(DataException exception) Adds this object's current state to aDataException.Indicates how received messages should be acknowledged (default toJmsAcknowledgeMode.AUTO).Returns the connection's client ID, also used as the durable subscription name when reading a topic.Returns the name of the queue or topic.Indicates the JNDI name to use when looking up the ConnectionFactory (defaults to "ConnectionFactory").Returns the JNDI environment used to look up the connection factory; it must not be empty when connecting.getProperty(String key) Returns a JNDI environment property or null if it is not set.getType()booleanIndicates if the JMS session is created as transacted (default is false).setAcknowledgeMode(JmsAcknowledgeMode acknowledgeMode) Indicates how received messages should be acknowledged (default toJmsAcknowledgeMode.AUTO).setClientId(String clientId) Sets the connection's client ID, also used as the durable subscription name when reading a topic.setJndiFactoryName(String jndiFactoryName) Indicates the JNDI name to use when looking up the ConnectionFactory (defaults to "ConnectionFactory").setProperty(String key, String value) Sets a JNDI environment property used to look up the connection factory.setTransacted(boolean transacted) Indicates if the JMS session is created as transacted (default is false).
-
Constructor Details
-
JmsSettings
- Parameters:
instanceName- the name of the Topic or Queuetype- the type of messaging used
-
JmsSettings
- Parameters:
name- the name of the Topic or Queuetype- the type of messaging used
-
-
Method Details
-
getProperties
Returns the JNDI environment used to look up the connection factory; it must not be empty when connecting. -
setProperty
Sets a JNDI environment property used to look up the connection factory. -
getProperty
Returns a JNDI environment property or null if it is not set. -
getInstanceName
Returns the name of the queue or topic. -
getType
-
isTransacted
public boolean isTransacted()Indicates if the JMS session is created as transacted (default is false). -
setTransacted
Indicates if the JMS session is created as transacted (default is false). -
getAcknowledgeMode
Indicates how received messages should be acknowledged (default toJmsAcknowledgeMode.AUTO). -
setAcknowledgeMode
Indicates how received messages should be acknowledged (default toJmsAcknowledgeMode.AUTO). -
getJndiFactoryName
Indicates the JNDI name to use when looking up the ConnectionFactory (defaults to "ConnectionFactory").- Returns:
-
setJndiFactoryName
Indicates the JNDI name to use when looking up the ConnectionFactory (defaults to "ConnectionFactory"). -
getClientId
Returns the connection's client ID, also used as the durable subscription name when reading a topic. -
setClientId
Sets the connection's client ID, also used as the durable subscription name when reading a topic. -
addExceptionProperties
Description copied from class:DataObjectAdds this object's current state to aDataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.- Overrides:
addExceptionPropertiesin classDataObject
-