I am trying to send a message to a Tibco Queue using Spring Boot, and I have achieved it using JMSComponent
. It does not use Spring Boot's built-in autoconfiguration files.
Can anyone please provide an example that uses spring.jms.jndi-name-<JNDI name>
in application.properties
file, autoconfigures Spring Boot, and sends a message?
I could see lot of examples available for configuring ActiveMQ Queue in Spring Boot but none for configuring Tibco Queue or using JMSAutoconfiguration
.
Here's the relationship of these parameters. An example for ActiveMQ:
jndiContextFactory: org.apache.activemq.jndi.ActiveMQInitialContextFactory
jndiProviderUrl: tcp://localhost:61616
jndiCFName: ConnectionFactory
and for TIBCO EMS:
jndiContextFactory: com.tibco.tibjms.naming.TibjmsInitialContextFactory
jndiProviderUrl: tibjmsnaming://localhost:51515
jndiCFName: cf1
The connection factory name is the name of a pre-configured connection factory. By default, ActiveMQ has one named, "ConnectionFactory". With TIBCO EMS, before version 8, I believe, there was a default one named "GenericConnectionFactory". With EMS 8.x you need to create all factories yourself, using 'tibemsadmin':
create factory cf1 generic url=tcp://localhost:7222
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With