Configuration of Standalone Stat Server on Wildfly
If stat.war is deployed in a different application server than qSystem.ear, it is necessary to do a number of changes to the JMS configuration in order to get events forwarded from the Central server to the Stat server.
JMS queues and bridges are defined in the configuration file <ORCHESTRA>/app/wildfly-8.2.0.Final/standalone/configuration/standalone-full.xml, which is present in both installations.
IMPORTANT: The following steps must be run in administrator mode!
1. On the server where Orchestra stat (stat.war) is deployed, create a user. In this example we use username="jms" and password="password", for the lookup of Queues, by running the script add-user,<ORCHESTRA>/app/wildfly-8.2.0.Final/bin/add-user.bat, on Windows, or <ORCHESTRA>/app/wildfly-8.2.0.Final/bin/add-user.sh,on Linux.
When running the script, supply the following input when prompted:
• b - application user
• username - username you selected
• password - password you selected
• password - password again
• <blank> - simply press enter to indicate that the user should not belong to a particular group
• yes - validate the input settings
• no - indicate that the user is not going to connect from another AS process, for e.g. EJB remoting)
• <enter> - press enter to finish.
If you enter a weak/short password, for example password, as in this example, you might get a warning such as “JBAS015264: Password is not strong enough, it is 'MODERATE'. It should be at least 'MEDIUM'. Are you sure you want to use the password entered yes/no?” or “JBAS015269: Password must have at least 4 characters! Are you sure you want to use the password entered yes/no?”. If this is the case, enter “no” and the script will prompt you for user/password again, or enter “yes” to use the password anyway.
2. On the server where Orchestra Central (qSystem.ear) is deployed, open the file <ORCHESTRA>/app/wildfly-8.2.0.Final/standalone/configuration/standalone-full.xml and locate the section:
3. To tell the server to handle remote connections, you need to change the <target> sections with the following. It is only the connection-factory name parameter that is changed:
There are two instances of the <target> section. However, please note that the destination name parameter is not identical in them!
4. Then, add a <context> section with the content below to each <target> section. The java.naming.provider.url should contain the IP-address of the application server where stat.war is deployed. The value for the key “java.naming.security.principal” should be the user name you added in step 1 and the value for the key “java.naming.security.credentials” should be the password you added for that user:
There are two instances of the <target> section! One for the destination “queue/statAgentEventQueue” and one for the destination “queue/statCentralJourneyEventQueue”, the context section below should be added to both.
The result will be something like the code below: (you will of course have another value for the key java.naming.provider.url in both context sections):
If Central has trouble connecting to the remote Stat server, make sure that firewall rules allow connections to port 8080.
If Orchestra Central still experiences JMS connection errors, such as:
WARN [org.hornetq.jms.server] (pool-3-thread-3) HQ122010: Failed to connect JMS Bridge: javax.naming.CommunicationException: Failed to connect to any server. Servers tried: [http-remoting://192.168.1.1:8080 (Operation failed with status WAITING after 5000 MILLISECONDS)] [Root exception is java.net.ConnectException: Operation failed with status WAITING after 5000 MILLISECONDS]
Or the following error in the Stat server’s Wildfly server.log:
INFO [org.jboss.as.naming] (default task-16) JBAS011806: Channel end notification received, closing channel Channel ID 1362678f (inbound) of Remoting connection 02b0b61f to /192.168.1.1:55380
This combination of messages means that the remote Stat Wildfly installation has trouble making an internal JMS connection which it may be trying to perform against address 0.0.0.0 by default, which must be changed. It is changed by editing the remote Stat’s Orchestra run.bat / run.sh script, which resides in the <remote stat install dir>/bin folder.
For Linux installations, change the last line to this (change IP as needed):
3. Then, modify the jms-bridges centralAgentEventBridge and centralJourneyEventBridge target to use the connection-factory "QPStatEventConnectionFactory" instead of "ConnectionFactory":
Follow these steps to troubleshoot your system, if it is not working correctly:
1. After installation is complete, and Orchestra is up and running, open the System Administration application and the Parameters tab. In the Statistics Settings section, change the Stat Server Address parameter to the IP address or Fully Qualified Domain Name (FQDN) of your Stat server.
2. If you are using a Branch Hub or Hub, open the Agent Profiles sub tab, in the System Administration application and select the applied Agent Profile. Change the Stat Server Address parameter, then re-publish the Agent Profile.
3. Make sure that port 5445 has been opened in the firewall of your Stat server.