Use an editor to complete the entries in the connectivity
configuration file that you created in Insight Designer or
by using the connectivityManager generate command.
About this task
The connectivity configuration file contains entries for
each endpoint in the solution. The configuration elements are grouped
under a comment for each endpoint. Each outbound server can be configured
to forward events for multiple endpoints of multiple solutions. An
individual endpoint can be a client of multiple servers in an outbound
connectivity tier. If a server is configured for a solution endpoint,
the emitted events are held on the outbound event queue for the endpoint.
The
entry for an outbound HTTP endpoint must take the following format:
<ia_outboundHttpEndpoint endpoint="solution_name/endpoint_name"/>
The
entry for an outbound JMS endpoint must take the following format:
<ia_outboundJmsEndpoint endpoint="solution_name/endpoint_name"/>
If
you installed WebSphere® Developer
Tools with Decision Server
Insights,
you can use the tools to autocomplete the entries. Complete the following
steps for each HTTP or JMS endpoint that you want to use:
- Uncomment the endpoint configuration element.
- Complete the required properties for that entry, specifying additional
configuration options (available on some elements).
- Repeat the procedure for the other HTTP or JMS endpoints that
you want to use.
For information on server configuration properties, see Liberty profile: Configuration elements in the server.xml
file.
Important: If you specify advanced properties
for outbound endpoints in the server.xml file,
the properties are applied to all endpoints that are referenced by
that entry. You can also specify advanced properties in the server.xml file
that override outbound endpoint advanced properties in the solution
connectivity definition (.cdef) file.
Procedure
- Open the connectivity configuration file in a suitable
editor.
- Complete the tasks that are shown in the table, for the
endpoints that you want to use. Also complete any additional
optional configuration if required.
Table 1. Tasks to complete
for each type of endpoint| Endpoint |
Tasks to complete |
| Inbound HTTP |
The ia_inboundHttpEndpoint clauses specify
the HTTP inbound endpoints that you want to use.
For each inbound
HTTP endpoint that you want to use: - Uncomment the application definition.
- If you enabled application security, complete the role mapping in the
application-bnd element of the application definition. By default, the server
templates do not specify user roles. However, if you specify user roles, you must map the users or
groups that you want to be able to submit HTTP events to the iaEventSubmitter role.
By default, no users or groups are mapped to this role. For more information, see Liberty profile: Authorization.
|
| Outbound HTTP |
For each outbound HTTP endpoint that you
want to use: - Uncomment the endpoint entry, and complete any additional optional
configuration if required.
|
| Inbound JMS |
The ia_inboundJmsEndpoint clauses specify
the inbound JMS endpoints that you want to use.
For each inbound
JMS endpoint that you want to use:
- Uncomment the JMS activation specification entry, for example: <!--WebSphere
MQ messaging provider activation specification-->, then add
the properties for connecting to your messaging provider. For WebSphere Application Server,
configure the wasJms entry. For WebSphere MQ, configure the wmqJms entry.
- Uncomment the authentication alias entry, for example <!--Authentication
alias for activation specification pingSolution-inbound/jmsIn1/jmsIn1-->,
then add the appropriate username and password required for connecting
to the messaging provider.
- Uncomment the JMS destination entry, for example <!--WebSphere
MQ messaging provider topic-->, then add the destination.
For WebSphere MQ, configure
the wmqJms entry for the appropriate destination
type.
Additional information on Inbound JMS:
You specify the JMS destination and activation specification by using the WebSphere Liberty tools. For information about Liberty and JMS, see Liberty profile: JMS messaging.
Ensure that the activation
specification ID matches the name of the Insight solution that receives
JMS messages, and the name of the endpoint that is defined in your
solution that receives JMS messages. The activation specification
ID must be in the format application name/module name/bean
name. The correct names for the application, module and
MDB (message-driven bean), for an MDB in an inbound connectivity application,
are: - Application name. This must be the solution name with the suffix -inbound appended,
for example flightMonitoring-inbound.
- Module name. This must be the name of the inbound JMS endpoint
in the solution, for example delayedDepartures.
- MDB name. This must be identical to the module name.
For more information, see Deploying message-driven beans to connect to WebSphere MQ.
You
must also ensure that the activation specification references the
ID of the JMS destination from where events are consumed. Set this
in the destinationRef field.
|
| Outbound JMS |
For each outbound JMS endpoint that you want to use:- Uncomment the endpoint definition, and complete any additional optional configuration if
required.
- Uncomment the JMS connection factory entry, for example <!--WebSphere MQ messaging
provider connection factory--> then add the properties for connecting to the messaging
provider. For WebSphere Application Server, configure
the wasJms entry. For WebSphere MQ,
configure the wmqJms entry.
- Uncomment the destination type for the messaging provider you want to use, for example
WebSphere MQ messaging provider topic. For WebSphere Application Server, configure the wasJms entry. For WebSphere MQ, configure the wmqJms
entry.
Additional information on outbound JMS:
You specify the JMS destination and JMS
connection factory by using the WebSphere Liberty tools.
For information about Liberty and JMS, see Liberty profile: JMS messaging.
If you are using WebSphere MQ, specify the location of the WebSphere MQ Resource Adapter by adding the following entry to the
server.xml
file: <variable name="wmqJmsClient.rar.location" value="/path/to/wmq/rar/wmq.jmsra.rar"/>
where
the value attribute specifies the absolute path to the WebSphere MQ Resource Adapter file, wmq.jmsra.rar.
For details of the supported versions, and how to obtain the wmq.jmsra.rar file
and install it, refer to the WebSphere MQ technote
1633761, Obtaining the WebSphere MQ Resource Adapter for the WebSphere Application Server
Liberty Profile.
|
Example
The following example specifies that the server is responsible
for the outbound HTTP endpoint, endpoint1, of the
solution solution1:
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1"/>
The
following example includes basic authentication credentials for an
HTTP POST:
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1" user="admin" password="{xor}FiwLNzYsDDo8Ki06GjEwKjg3awpg/>
The
following example overrides the URL specified in the solution connectivity
definition (.cdef) file for the outbound HTTP
endpoint endpoint1:
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1" url="http://localhost:9080/some/override/value"/>
The
following example provides advanced properties for the outbound JMS
endpoint endpoint2:
<ia_outboundJmsEndpoint endpoint="solution1/endpoint2" jms.persistent.delivery="true" jms.bytes.message="false"/>
You
can also use a wildcard either for the solution name or for the endpoint
name, for example:
<ia_outboundHttpEndpoint endpoint="solution1/*" />
- * represents the endpoints of all solutions
- sol* would represent all endpoints of all solutions
that match
- solution1/* would represent all endpoints of
the solution
- solution1/target* would represent all endpoints
that match target* of solution1
The following JMS example enables the WebSphere Application Server JMS messaging
provider to receive messages from delayedDeparturesQueue queue. This
example also sends the messages to the delayedDepartures endpoint
of the flightMonitoring solution. The WebSphere Application Server service integration
bus is deployed on the airport.example.org host
and is listening on port 7276 using the BootstrapBasicMessaging chain.
<jmsQueue jndiName="jms/delayedDepartures" id="delayedDepartures">
<properties.wasJms queueName="delayedDeparturesQueue"/>
</jmsQueue>
<jmsActivationSpec id="flightMonitoring-inbound/delayedDeparturesEndpoint/delayedDeparturesEndpoint">
<properties.wasJms destinationType="javax.jms.Queue" destinationRef="delayedDepartures" remoteServerAddress="hostname.example.org:7276:BootstrapBasicMessaging"/>
</jmsActivationSpec>
The following JMS example enables the WebSphere MQ JMS messaging provider to
receive JMS messages from the weatherUpdatesTopic topic. The example
also delivers the messages to the weatherUpdates endpoint of the flightMonitoring
solution. The WebSphere MQ
queue manager is deployed on the weather.example.org host
and is listening on port 1415.
<jmsTopic jndiName="jms/weatherUpdates" id="weatherUpdates">
<properties.wmqJms baseTopicName="weatherUpdatesTopic"/>
</jmsTopic>
<jmsActivationSpec id="flightMonitoring-inbound/weatherUpdatesEndpoint/weatherUpdatesEndpoint">
<properties.wmqJms destinationType="javax.jms.Topic" destinationRef="weatherUpdates" hostName="weather.example.org" port="1415"/>
</jmsActivationSpec>
The following JMS example
sends messages to the runwayStatusTopic topic. The example uses the
runwayStatus endpoint of the flightMonitoring solution with the WebSphere MQ JMS messaging
provider. The WebSphere MQ
queue manager is configured on the airport.example.org host,
and is listening on port 1415.
<jmsTopic jndiName="jms/runwayStatus" id="runwayStatus">
<properties.wmqJms baseTopicName="runwayStatusTopic"/>
</jmsTopic>
<jmsConnectionFactory jndiName="jms/airportQM">
<properties.wmqJms hostName="airport.example.org" port="1415"/>
</jmsConnectionFactory>
What to do next
Deploy the connectivity configuration by running the connectivityManager
deploy command.