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:portThe 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
- Compile the SamplePropertiesExit2.java file.
- Create a JAR file containing the compiled exit and its package structure.
- Put the JAR file in the MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent/exits directory.
- Edit the MQ_DATA_PATH/mqft/config/coordination_queue_manager/agents/bridge_agent_name/agent.properties file to contain the line:
protocolBridgePropertiesExitClasses=SamplePropertiesExit2- 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- 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.propertiesYou must use the absolute path to the protocol_bridge_properties.properties file.- Start the protocol bridge agent by using the fteStartAgent command.
Parent topic: Looking up protocol file server properties: ProtocolBridgePropertiesExit2
Related concepts
Related information
- ProtocolBridgePropertiesExit.java interface
- Sample protocol bridge properties user exit
- The MFT agent.properties file
- fteCreateBridgeAgent (create and configure an MFT protocol bridge agent)