Difference between revisions of "Installing the Messaging Server: DEPRECATED"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 39: Line 39:
# Go to '''Settings > Service Provider Settings > Service Configuration'''
# Go to '''Settings > Service Provider Settings > Service Configuration'''
# Set values for the following parameters:
# Set values for the following parameters:
::{| border="1"
::{| border="1" cellspacing="0" cellpadding="2"
| '''HornetQ Host''' || to IP address of the server where you installed HornetQ server (by default “localhost”)
| '''HornetQ Host''' || &nbsp;IP address of the server where HornetQ is installed (default: <tt>localhost</tt>)
|-
|-
| '''HornetQ Port''' || only change it if you changed port configuration in hornetq-configuration.xml for “netty” acceptor (by default 5445)
| '''HornetQ Port''' || &nbsp;Default: 5445.<br>&nbsp;Needs to be specified only if the port specified for the <tt>netty</tt> acceptor was changed in <tt>hornetq-configuration.xml</tt> for “netty” acceptor.&nbsp;
|-
|-
| '''HornetQ User<br>HornetQ Password''' || credentials that to you used in hornetq-users.xml configuration file.
| '''HornetQ User<br>HornetQ Password''' || &nbsp;Use the same credentials you specified in <tt>hornetq-users.xml</tt>
|-
|-
| '''HornetQ QoS''' || count of simultaneously working MQ listeners\
| '''HornetQ QoS''' || &nbsp;The number of simultaneously working Message Queue listeners.
|}
|}
:5. Click '''[Save]'''
:5. Click '''[Save]'''

Revision as of 22:36, 24 January 2014

Installing HornetQ

HornetQ is the Message Queue engine used by the Messaging Server.

To install HornetQ

  1. Download it from http://www.jboss.org/hornetq/downloads.html
    (For the release to use, see the Software Requirements.)
  2. Unpack the archive to the desired location (hornetq-2.2.14, at the the time of this writing).
  3. Edit {hornetq-folder}/config/stand-alone/non-clustered/hornetq-users.xml
  4. Create a new user by adding the following code to the <configuration> section:
    <user name="[USER_NAME]" password="[PASSWORD]">
       <role name="admin"/>
    </user>
    
  5. Edit {hornetq-folder}/config/stand-alone/non-clustered/hornetq-configuration.xml
  6. Replace the <security>...</security> section with the following:
    <security-settings>
       <security-setting match="#">
          <permission type="createNonDurableQueue" roles="guest, admin"/>
          <permission type="deleteNonDurableQueue" roles="guest, admin"/>
          <permission type="createDurableQueue" roles="admin"/>
          <permission type="deleteDurableQueue" roles="admin"/>
          <permission type="consume" roles="guest, admin"/>
          <permission type="send" roles="guest, admin"/>
          <permission type="manage" roles="admin"/>
       </security-setting>
    </security-settings>
    

Notepad.png

Note:

HornetQ is started using [hornetq-folder]/bin/start.sh.
It should be started before launching the platform's messaging server.
Learn more: Server Restart Sequence

Configuring the Platform's Service Provider Settings

  1. Go to the Service Provider URL: http://{yourDomain}/networking/Service?t=1&targetpage=ViewPort.jsp
  2. Log in as the admin user
  3. Go to Settings > Service Provider Settings > Service Configuration
  4. Set values for the following parameters:
HornetQ Host  IP address of the server where HornetQ is installed (default: localhost)
HornetQ Port  Default: 5445.
 Needs to be specified only if the port specified for the netty acceptor was changed in hornetq-configuration.xml for “netty” acceptor. 
HornetQ User
HornetQ Password
 Use the same credentials you specified in hornetq-users.xml
HornetQ QoS  The number of simultaneously working Message Queue listeners.
5. Click [Save]

Creating an SSL Keystore

Configuring the Messaging Server