+

Search Tips | Advanced Search

Use the sample user exit to look up protocol file server properties

Managed File Transfer provides a sample user exit that looks up protocol file server properties.


About this task

A sample user exit that looks up protocol bridge properties is provided in the MQ_INSTALLATION_PATH/mqft/samples/protocolBridge directory and in the topic Sample protocol bridge properties user exit.

The SamplePropertiesExit2.java exit reads a properties file that contains properties for protocol servers. The format of each entry in the properties file is as follows:
serverName=type://host:port
The location of the properties file is taken from the protocol bridge agent property protocolBridgePropertiesConfiguration.

To run the sample user exit, complete the following steps:


Procedure

  1. Compile the SamplePropertiesExit2.java file.
  2. Create a JAR file containing the compiled exit and its package structure.
  3. Put the JAR file in the MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent/exits directory.
  4. Edit the MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent_name/agent.properties file to contain the line:
    protocolBridgePropertiesExitClasses=SamplePropertiesExit2
    
  5. Create a protocol bridge properties file, for example protocol_bridge_properties.properties, in the directory MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent. Edit this file to include entries in the format:
    serverName=type://host:port
  6. Edit the MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent/agent.properties file to contain the line:
    protocolBridgePropertiesConfiguration=MQ_DATA_PATH/mqft/config/coordination_queue_manager/
    agents/bridge_agent/protocol_bridge_properties.properties
    You must use the absolute path to the protocol_bridge_properties.properties file.
  7. Start the protocol bridge agent by using the fteStartAgent command.

Parent topic: Looking up protocol file server properties: ProtocolBridgePropertiesExit2


Related concepts


Related information

Last updated: 2020-10-04