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.