Class SolaceJndiVendorImplementation
- All Implemented Interfaces:
ComponentLifecycleExtension
,ConnectionComparator<VendorImplementationBase>
,VendorImplementation
,VendorImplementationBase
JNDI Solace implementation of VendorImplementation
.
This vendor implementation allows you to configure the JNDI properties that will fetch the connection-factory from the Solace JNDI store..
The main reason to use this JNDI implementation rather than the standard JNDI implementation, is that this one allows us retry creating the consumer should it fail. Typically this might happen if a Solace queue has been shutdown. In which case the consumer creation will fail.
This was built against Solace 10.6.0
In the adapter configuration file this class is aliased as solace-jndi-implementation which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: BASIC
-
Field Summary
Fields inherited from class com.adaptris.core.jms.jndi.BaseJndiImplementation
context, jndiName
Fields inherited from class com.adaptris.core.jms.VendorImplementationImp
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jms.MessageConsumer
createConsumer
(JmsDestination d, String selector, JmsActorConfig c) javax.jms.MessageConsumer
createQueueReceiver
(String queueName, String selector, JmsActorConfig c) If a Solace queue has been shutdown, we should wait for it to come back up before we continue.javax.jms.MessageConsumer
createTopicSubscriber
(String topicName, String selector, String subscriptionId, JmsActorConfig c) Sets the maximum amount of times to retry attempting to create the message consumer.Sets the amount of time in seconds to wait before each attempt to create the message consumer.void
setCreateConsumerMaxRetries
(Integer createConsumerMaxRetries) Sets the maximum amount of times to retry attempting to create the message consumer.void
setCreateConsumerRetryWaitSeconds
(Integer createConsumerRetryWaitSeconds) Sets the amount of time in seconds to wait before each attempt to create the message consumer.Methods inherited from class com.adaptris.core.jms.jndi.StandardJndiImplementation
createConnectionFactory
Methods inherited from class com.adaptris.core.jms.jndi.BaseJndiImplementation
asList, connectionEquals, createQueue, createTopic, enableEncodedPasswords, getEnableEncodedPasswords, getEncodedPasswordKeys, getExtraFactoryConfiguration, getJndiName, getJndiParams, getNewContextOnException, getUseJndiForQueues, getUseJndiForTopics, lookup, newContextOnException, retrieveBrokerDetailsForLogging, setEnableEncodedPasswords, setEncodedPasswordKeys, setExtraFactoryConfiguration, setJndiName, setJndiParams, setNewContextOnException, setUseJndiForQueues, setUseJndiForTopics, useJndiForQueues, useJndiForTopics
Methods inherited from class com.adaptris.core.jms.VendorImplementationImp
applyVendorSessionProperties, createDestination, createSession, prepare
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
Methods inherited from interface com.adaptris.core.jms.ConnectionComparator
connectionEquals
Methods inherited from interface com.adaptris.core.jms.VendorImplementation
createConnection
Methods inherited from interface com.adaptris.core.jms.VendorImplementationBase
createDestination, createQueue, createSession, createTopic, retrieveBrokerDetailsForLogging
-
Constructor Details
-
SolaceJndiVendorImplementation
public SolaceJndiVendorImplementation()
-
-
Method Details
-
createQueueReceiver
public javax.jms.MessageConsumer createQueueReceiver(String queueName, String selector, JmsActorConfig c) throws javax.jms.JMSException If a Solace queue has been shutdown, we should wait for it to come back up before we continue.
- Specified by:
createQueueReceiver
in interfaceVendorImplementationBase
- Overrides:
createQueueReceiver
in classVendorImplementationImp
- Throws:
javax.jms.JMSException
- See Also:
-
createConsumer
public javax.jms.MessageConsumer createConsumer(JmsDestination d, String selector, JmsActorConfig c) throws javax.jms.JMSException - Specified by:
createConsumer
in interfaceVendorImplementationBase
- Overrides:
createConsumer
in classVendorImplementationImp
- Throws:
javax.jms.JMSException
-
createTopicSubscriber
public javax.jms.MessageConsumer createTopicSubscriber(String topicName, String selector, String subscriptionId, JmsActorConfig c) throws javax.jms.JMSException - Specified by:
createTopicSubscriber
in interfaceVendorImplementationBase
- Overrides:
createTopicSubscriber
in classVendorImplementationImp
- Throws:
javax.jms.JMSException
-
createConsumerRetryWaitSeconds
-
createConsumerMaxRetries
-
getCreateConsumerRetryWaitSeconds
Sets the amount of time in seconds to wait before each attempt to create the message consumer. -
setCreateConsumerRetryWaitSeconds
Sets the amount of time in seconds to wait before each attempt to create the message consumer. -
getCreateConsumerMaxRetries
Sets the maximum amount of times to retry attempting to create the message consumer.
A value of zero means continue trying forever
-
setCreateConsumerMaxRetries
Sets the maximum amount of times to retry attempting to create the message consumer.
A value of zero means continue trying forever
-