public class JmsSettings extends DataObject
id, log, name, TIMESTAMP_FORMAT
Constructor and Description |
---|
JmsSettings(String name,
JmsDestinationType type) |
JmsSettings(String instanceName,
JmsDestinationType type,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this object's current state to a
DataException . |
JmsAcknowledgeMode |
getAcknowledgeMode()
Indicates how received messages should be acknowledged (default to
JmsAcknowledgeMode.AUTO ). |
String |
getClientId() |
String |
getInstanceName() |
String |
getJndiFactoryName()
Indicates the JNDI name to use when looking up the ConnectionFactory (defaults to "ConnectionFactory").
|
Properties |
getProperties() |
String |
getProperty(String key) |
JmsDestinationType |
getType() |
boolean |
isTransacted() |
JmsSettings |
setAcknowledgeMode(JmsAcknowledgeMode acknowledgeMode)
Indicates how received messages should be acknowledged (default to
JmsAcknowledgeMode.AUTO ). |
JmsSettings |
setClientId(String clientId) |
JmsSettings |
setJndiFactoryName(String jndiFactoryName) |
JmsSettings |
setProperty(String key,
String value) |
JmsSettings |
setTransacted(boolean transacted) |
public JmsSettings(String instanceName, JmsDestinationType type, Properties properties)
instanceName
- the name of the Topic or Queuetype
- the type of messaging usedpublic JmsSettings(String name, JmsDestinationType type)
name
- the name of the Topic or Queuetype
- the type of messaging usedpublic Properties getProperties()
public JmsSettings setProperty(String key, String value)
public String getInstanceName()
public JmsDestinationType getType()
public boolean isTransacted()
public JmsSettings setTransacted(boolean transacted)
public JmsAcknowledgeMode getAcknowledgeMode()
JmsAcknowledgeMode.AUTO
).public JmsSettings setAcknowledgeMode(JmsAcknowledgeMode acknowledgeMode)
JmsAcknowledgeMode.AUTO
).public String getJndiFactoryName()
public JmsSettings setJndiFactoryName(String jndiFactoryName)
public String getClientId()
public JmsSettings setClientId(String clientId)
public DataException addExceptionProperties(DataException exception)
DataObject
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class DataObject
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.