Before you can run an application that uses a real-time
connection to a broker, you must configure that broker.
Before you begin
Before starting this task, you perform the following steps:
- Make sure that your application has access to a broker that is
running.
- Make sure that your application uses a connection factory whose
properties are set appropriately for a real-time connection to a broker.
For more information about the properties of a connection factory,
see Properties of ConnectionFactory.
About this task
You configure a broker to run XMS
applications in the same way that you configure a broker to run IBM® MQ classes for JMS applications. The following steps summarize what you
need to do:
Procedure
- Create and deploy a message flow to read messages from
the TCP/IP port on which a broker is listening and publish the messages.
You can do this in either of the following ways:
- Create a message flow that contains a Real-timeOptimizedFlow message
processing node.
- Create a message flow that contains a Real-timeInput message processing
node and a Publication message processing node.
You must configure the
Real-timeOptimizedFlow or
Real-timeInput node to listen on the port used for real-time connections. In
XMS, the default port number for real-time
connections is 1506.
You do not need to
perform this step if a suitable message flow is already deployed at
the broker.
-
If you require messages to be delivered to your application using IBM MQ classes for JMS, configure the broker to enable multicast. Configure
the topics that must be multicast enabled, specifying a reliable quality of service for those topics
requiring reliable multicast.
- If your application supplies a user ID and a password when
it connects to the broker, and you want the broker to authenticate
your application using this information, configure the user name server
and the broker for simple telnet-like password authentication.
Results
You can now start your application.