Connection Managers can be added through eStudio as well as by using scripts. Sections below illustrate the two different ways of adding Connection Managers.
Through eStudio
- Launch the Fiorano eStudio. Open the ProfileManager, and open the profile where the socket acceptor is to be added.
- In the profile, select the domain to which the new socket acceptor is added. The default FioranoMQ profile has socket acceptors at the following nodes in the tree Fiorano > socketAcceptors. Fiorano recommends adding a new sub-domain (for instance, port-2) to this domain, along with a new socket acceptor.
- Right-click the desired domain, and select AddComponents. The AddComponentstoProfile dialog box appears. Navigate to Fiorano > FioranoFw > Services
Select the component ConnectionManager1 from the new dialog box.
Click the OK button to add the selected instance(s) to the profile. The dependencies of the newly added component(s) have to be resolved. All unresolved dependencies are marked with an error icon which is red in color.
To resolve dependencies, open the DependsOn property of the newly added Connection Manager and the associated SocketReadHandler. For each dependency marked with a red colored icon, select the desired instance from the drop-down list from the Properties field.
- Right-click the profile root node, and select Validate to ensure that all dependencies are resolved.
- Modify the port number for the newly added socket acceptor, so that it is different from the port number in use by existing socket acceptor.
- Right-click the profile root node, and select Save to save the profile.
Configuring Single Socket Acceptor for Admin
- Open eStudio, and open the FiranoMQ profile.
Navigate to FioranoMQ > Fiorano > etc > FMQConfigLoader > UseSingleSocketForAdmin.
Through Scripts
As an alternate way of adding/deleting new connection managers without having to resolve dependencies, use Connection Manager scripts present under $FIORANO_HOME/fmq/Utilities.
ConnectionManager script takes the name, port, and protocol of the new Connection Manager and the profile path to which the Connection Manager should be added/deleted as arguments.