Connecting a TIBCO ActiveMatrix® Adapter for Files (Unix/Win) application to a remote central TIBCO Enterprise Message service (EMS) server using a local EMS server connection factory.
book
Article ID: KB0076373
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows
-
Not Applicable
-
Description
You can connect your TIBCO ActiveMatrix® Adapter for Files (Unix/Win) application to a remote central EMS server and use queues\ topics of that server through a connection factory of a local TIBCO Enterprise Message service (EMS) server. This way you can centralize your use of connection factories to a central EMS server.
Environment
Product: TIBCO ActiveMatrix® Adapter for Files (Unix/Win)
Version:6.0.0, 6.1.0, 6.2.0, 6.2.1
OS: All Supported Operating Systems
--------------------
Resolution
Use of 'JNDI Lookups' in TIBCO ActiveMatrix® Adapter for Files (Unix/Win) (FA) to connect to remote EMS through a local EMS connection factory can be done as follows. Note that specific names used in these steps are for illustration purpose only.
Step 1). Create 'SampleFactory' in the file factories.conf of the local TIBCO Enterprise Message service (EMS) server as shown below.
*********** [SampleFactory] type = topic url = tcp://url_of_central_EMS:7222 ***********
Step 2). In the FA application (Designer) Transport tab of FA Publisher/Subscriber mention Destination e.g.'Service'.
Step 3). Configure 'DefaultJmsTopicSession' as follows:
1). Check "JNDI Lookups". 2). For 'JNDI connection factory Name' give the value as 'SampleFactory' . 3). For 'JNDI Provider URL' give the value as 'tcp://url_of_local_EMS:7222' , i.e., connecting to the local EMS server.
Step 4). Enable the console_trace property on the central as well as the local EMS server and bring both servers up.
Step 5). Run the FA Publisher/Subscriber in tester and observe the console output of both EMS servers.
1). Check the central EMS server console which shows Connected with type: topic (i.e., lookup successful). 2). Start the admin tool of the central EMS server and issue the 'show topics' command. You will see the topic 'Service' created.
Issue/Introduction
Connecting a TIBCO ActiveMatrix® Adapter for Files (Unix/Win) application to a remote central TIBCO Enterprise Message service (EMS) server using a local EMS server connection factory.