Samples

Sample policies and applications are provided with the default pattern that configure sample policies and sample JNDI destinations.

Sample policies

Two sample policies are created when this script package is run:
  • SampleRoutingSchedule01
  • SampleRoutingSchedule02
These policies have the following scheduling conditions:
  • StartTime - 8 a.m.
  • StopTime - 8 p.m.
  • WeekDays - Every day of the week.

The policies in WSRR also have a custom property field added called PolicySelector. For SampleRoutingSchedule01, this value is set to GID007 and for SampleRoutingSchedule02 this value is set to GID008. The PolicySelector value is provided by the client as part of the JMS message header and the matching policy is enforced by the message flow.

Sample JNDI bindings

The default JNDI destinations created in the SOA Policy Pattern: Create Sample JNDI Bindings script package are DESTINATION1_OUT and DESTINATION2_OUT, and the respective MQ queues DESTINATION1_OUTQ and DESTINATION2_OUTQ.

Sample JMS client

Two sample JMS clients are provided with this pattern. The SendJMSMessage and ReceiveJMSMessage Java™ sample clients are located in /opt/ibm/mqsi/8.0.0.1/sample/JMSSendReceive in the installation directory.

Customizing the policies and JNDI bindings

Optionally, you can delete the SOA Policy Pattern: Create Sample Policies and SOA Policy Pattern: Create Sample JNDI Bindings script packages from the cloned IBM SOA Policy Pattern. After removing these optional script packages, you can deploy the cloned IBM SOA Policy Pattern and use the deployed instance of the pattern. For more details about WSRR policy management and managing JMS destinations on the deployed instance, see Working with the deployed instance.

Concept Concept

Feedback

Timestamp icon Last updated: Thursday, 3 July 2014
http://publib.boulder.ibm.com/infocenter/prodconn/v1r0m0/topic/com.ibm.scenarios.soawmbwsrr.doc/topics/csoa_samples.htm