Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 15 Gateway Management Features : Enabling JMS Channel for Central Logger

Enabling JMS Channel for Central Logger
The Central Logger component of the TIBCO API Exchange Gateway receives the messages from the Core Engine and logs the transaction data records to a database. It write the records in bulk after a fixed interval. The Central Logger runs as a separate engine than the Core Engine.
By default, the messages from the Core Engine are sent to the Central Logger using Rendezvous transport. You can also enable the JMS transport for the Central Logger to send the messages from the Core Engine to Central Logger.
When the Rendezvous transport is used by the Core Engine, the messages are not guaranteed to be received by the Central Logger. If the Central Logger instance is not running, the messages sent by the Core Engine are lost. To improve the reliability and guaranteed delivery of the messages, API Exchange Gateway supports the JMS transport as a communication channel between the Core Engine and the Central Logger.
Configuration Setup for JMS Channel
This section explains the configuration steps required to use JMS transport for the Core Engine and the Central Logger.
How to Enable JMS Channel for Central Logger
By default, the JMS channel for the Central Logger is disabled using the property defined in the asg_core.cdd and asg_cl.cdd files.
To enable the JMS channel for the Central Logger, follow these steps:
1.
Navigate to the ASG_HOME/bin directory.
2.
Open the asg_core.cdd file in a text editor and edit it as follows:
a.
Locate the be.channel.deactivate property as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate" value="/Common/Channel/AS,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South,/Common/Channel/CentralLoggerJMS"/>

 
b.
If you have not taken the backup of the be.channel.deactivate property, copy the be.channel.deactivate property to be.channel.deactivate.backup, as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate.backup" value="/Common/Channel/AS,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South,/Common/Channel/CentralLoggerJMS"/>

 
c.
Remove the following entry from the be.channel.deactivate property value:
      /Common/Channel/CentralLoggerJMS
d.
Ensure that the value of be.channel.deactivate property is as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate" value="/Common/Channel/AS,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South"/>

 
e.
3.
Open the asg_cl.cdd file in a text editor and edit it as follows:
a.
Locate the be.channel.deactivate property as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate" value="/Common/Channel/AS,/ASG/Channels/RvMappingChannel,/ASG/Channels/RvCacheableChannel,/ASG/Channels/modRV_Channel,/Common/Channel/Channel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South,/Common/Channel/CentralLoggerJMS,/DefaultImplementation/Channels/OAuthWebappsChannel,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel"/>

 
b.
If you have not taken the backup of the be.channel.deactivate property, copy the be.channel.deactivate property to be.channel.deactivate.backup, as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate.backup" value="/Common/Channel/AS,/ASG/Channels/RvMappingChannel,/ASG/Channels/RvCacheableChannel,/ASG/Channels/modRV_Channel,/Common/Channel/Channel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South,/Common/Channel/CentralLoggerJMS,/DefaultImplementation/Channels/OAuthWebappsChannel,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel"/>

 
c.
Remove the following entry from the be.channel.deactivate property value:
      /Common/Channel/CentralLoggerJMS
d.
Ensure that the be.channel.deactivate property value looks as follows:

 
<property-group comment="" name="Channel">
<property name="be.channel.deactivate" value="/Common/Channel/AS,/ASG/Channels/RvMappingChannel,/ASG/Channels/RvCacheableChannel,/ASG/Channels/modRV_Channel,/Common/Channel/Channel,/DefaultImplementation/Channels/SouthboundEsb0Channel,/DefaultImplementation/Channels/SouthboundEsb1Channel,/DefaultImplementation/Channels/SouthboundEsb2Channel,/DefaultImplementation/Channels/North_ESBChannel,/DefaultImplementation/Channels/North_HTTPChannel,/ASG/Channels/SOAPJMSChannel,/ASG/Channels/SOAPJMSChannel_North,/ASG/Channels/SOAPJMSChannel_South,/DefaultImplementation/Channels/OAuthWebappsChannel,/DefaultImplementation/Channels/OAuthWebappsHTTPSChannel"/>

 
e.
Set JMS Transport for Central Logger
Set the JMS transport for the Central Logger in the asg.properties file as follows:
1.
Navigate to the ASG_CONFIG_HOME directory.
2.
Open the asg.properties file in a text editor.
3.
   tibco.clientVar.ASG/Logging/transport=JMS
4.
5.
Open the asg_cl.properties file in a text editor.
6.
   tibco.clientVar.ASG/Logging/transport=JMS
7.
The default value of logging transport is RV which means that Rendezvous is used for communication between the Core Engine and Central Logger. Setting the value to JMS specifies that JMS transport is used for communication between the Core Engine and the Central Logger.
Configuring JMS Transport Properties
The JMS Transport Properties table shows the properties you must define to use the JMS transport for the Central Logger. The JMS transport properties are defined in the Core Engine properties asg.properties file as well as in the Central Logger properties asg_cl.properties file.
To set the JMS transport properties, do following steps:
1.
Navigate to the ASG_CONFIG_HOME directory.
2.
Open the asg.properties file in a text editor.
3.
4.
5.
Open the asg_cl.properties file in a text editor.
6.
7.
Example: tcp://localhost:7222
Specifies the name of TopicConnectionFactory object stored in JNDI. This object is used to create a topic connection with JMS server for the Central Logger.
The default value is TopicConnectionFactory
Specifies the name of QueueConnectionFactory object stored in JNDI. This object is used to create a queue connection with JMS server for the Central Logger.
The default value is QueueConnectionFactory
For example, asg.cl.transaction.queue
Possible values are queue or topic.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved