Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Make sure that activemq-client.jar is present in the /lib directory.

Typical JMS endpoint parameters in the jms-adaptor.properties:

Code Block
languageperl
titlejms-adaptor.properties
jms.adaptor.

...

ConnectionNames =LocalActiveMQConnection

...


jms.adaptor.

...

ClientNames =

...

 ActiveMQProducer, ActiveMQConsumer

...


 

...



# ActiveMQ Connection definition

...


jms.adaptor.Connection.LocalActiveMQConnection.

...

InitialContextFactory =

...

 org.apache.activemq.jndi.ActiveMQInitialContextFactory

...


jms.adaptor.Connection.LocalActiveMQConnection.ProviderURI =

...

 tcp://localhost:61616

...


jms.adaptor.Connection.LocalActiveMQConnection.

...

User = 

...


jms.adaptor.Connection.LocalActiveMQConnection.

...

Password = 

...


jms.adaptor.Connection.LocalActiveMQConnection.

...

ConnectionFactory = queueConnectionFactory
jms.adaptor.Connection.LocalActiveMQConnection.

...

Reconnect = true
jms.adaptor.Connection.LocalActiveMQConnection.

...

ReconnectTries = 3
jms.adaptor.Connection.LocalActiveMQConnection.

...

ReconnectInterval =

...

 500
 

# ActiveMQ Producer definition
jms.adaptor.Client.ActiveMQProducer.

...

ConnectionName = LocalActiveMQConnection
jms.adaptor.Client.ActiveMQProducer.StorageDir = ./logs

...


jms.adaptor.Client.ActiveMQProducer.

...

SessionType = Producer
jms.adaptor.Client.ActiveMQProducer.

...

MessagingMode = Queue
jms.adaptor.Client.ActiveMQProducer.

...

DestinationURI = MyQueue
jms.adaptor.Client.ActiveMQProducer.

...

DeliveryMode = NoPersist
jms.adaptor.Client.ActiveMQProducer.

...

TimeToLive = 100000
jms.adaptor.Client.ActiveMQProducer.

...

SessionAckMode = Auto
jms.adaptor.Client.ActiveMQProducer.

...

MessageType = Text
jms.adaptor.Client.ActiveMQProducer.

...

Transacted = true
jms.adaptor.Client.ActiveMQProducer.

...

DurableSubscription = false
jms.adaptor.Client.ActiveMQProducer.

...

DurableSubscriptionName = DurableTest
  

# ActiveMQ Consumer definition
jms.adaptor.Client.ActiveMQConsumer.

...

ConnectionName = LocalActiveMQConnection
jms.adaptor.Client.ActiveMQConsumer.StorageDir = ./logs

...


jms.adaptor.Client.ActiveMQConsumer.

...

SessionType = Consumer
jms.adaptor.Client.ActiveMQConsumer.

...

MessagingMode = Queue
jms.adaptor.Client.ActiveMQConsumer.

...

DestinationURI = MyQueue
jms.adaptor.Client.ActiveMQConsumer.

...

DeliveryMode = NoPersist
jms.adaptor.Client.ActiveMQConsumer.

...

TimeToLive = 100000
jms.adaptor.Client.ActiveMQConsumer.

...

SessionAckMode = Auto
jms.adaptor.Client.ActiveMQConsumer.

...

MessageType = Text
jms.adaptor.Client.ActiveMQConsumer.

...

Transacted = false
jms.adaptor.Client.ActiveMQConsumer.

...

DurableSubscription = false
jms.adaptor.Client.ActiveMQConsumer.

...

DurableSubscriptionName =

...

 DurableTest

NOTE:  jms.adaptor.Connection.LocalActiveMQConnection.ProviderURI = tcp://localhost:61616 - host:port of Apache ActiveMQ Message Broker.

2.2 Configuration for TIBCO EMS vendor 

...

Typical JMS consumer endpoint parameters in the jms-adaptor.properties:


Code Block
languageperl
titlejms-adaptor.properties
jms.adaptor.

...

ConnectionNames =TibcoJMSConnection

...


jms.adaptor.

...

ClientNames =

...

 TibcoConsumer
 

# JMS Connection definition
jms.adaptor.Connection.TibcoJMSConnection.

...

InitialContextFactory =

...

 com.tibco.tibjms.naming.TibjmsInitialContextFactory

...


jms.adaptor.Connection.TibcoJMSConnection.ProviderURI =

...

 tcp://localhost:7222

...


jms.adaptor.Connection.TibcoJMSConnection.

...

User =dev

...


jms.adaptor.Connection.TibcoJMSConnection.

...

Password =dev

...


jms.adaptor.Connection.TibcoJMSConnection.

...

ConnectionFactory = TopicConnectionFactory
jms.adaptor.Connection.TibcoJMSConnection.

...

ReconnectTries = 2000000
jms.adaptor.Connection.TibcoJMSConnection.

...

ReconnectInterval = 2000
jms.adaptor.Connection.TibcoJMSConnection.

...

Reconnect =

...

 true
 
# Topic Consumer client
jms.adaptor.Client.TibcoConsumer.

...

ConnectionName = TibcoJMSConnection
jms.adaptor.Client.TibcoConsumer.

...

SessionType = Consumer
jms.adaptor.Client.TibcoConsumer.

...

MessagingMode = Topic
jms.adaptor.Client.TibcoConsumer.

...

DestinationURI =

...

 fixedge.deals

...


jms.adaptor.Client.TibcoConsumer.

...

DeliveryMode = NoPersist
jms.adaptor.Client.TibcoConsumer.

...

TimeToLive = 100000
jms.adaptor.Client.TibcoConsumer.

...

SessionAckMode = Auto
jms.adaptor.Client.TibcoConsumer.

...

MessageType = Text
jms.adaptor.Client.TibcoConsumer.StorageDir = ./logs

...


jms.adaptor.Client.TibcoConsumer.

...

DurableSubscription = true
jms.adaptor.Client.TibcoConsumer.

...

DurableSubscriptionName =

...

 fixedge.deals