Configuring and deploying the BAR files
You have already set up your WS-RM policy, WS-Security policy (keystores, security policy, consumer binding, provider binding)
and TCP/IP Monitor. If you extend the sample only with the WS-RM policy, then you do not need to
associate the bindings.
Before you apply the policy set and bindings, you must have completed all of the instructions
provided in Setting up the Address Book samples to use HTTP or
Setting up the sample to use JMS transport except for the redeployment.
If you are using WS-Security, complete all of the following steps to associate the policy and bindings with the message flow,
and to deploy them to the broker.
To associate the policy and the consumer binding with the consumer flow, complete the following steps:
-
Open the AddressSampleConsumer broker archive (BAR) file in the AddressBook project.
-
Select the Prepare tab and ensure the AddressBookConsumerFlow message flow
and its message set are selected. Click Build broker archive.
-
Select the Manage tab, in the bottom left of the pane, and select AddressBookConsumerFlow.cmf.
-
In the Consumer Policy Set field, click Edit.
Select the policy that you created earlier.
- If you have extended the sample with WS-Security or WS-RM, click Edit in the Consumer Policy Set Bindings field.
Select the binding that you created in Creating the consumer binding.
- Save and close the Broker Archive editor.
To associate the policy and the provider binding with the provider flow, complete the following steps:
-
Open the AddressSampleProvider BAR file in the AddressBook project.
-
Select the Prepare tab and ensure the AddressBookProviderFlow message flow
and its message set are selected. Click Build broker archive.
-
Select the Manage tab, select AddressBookProviderFlow.cmf.
-
In the Provider Policy Set field, click Edit.
Select the same policy that you created earlier and associated with the consumer flow.
It can be WS-RM policy or WS-Security policy or WS-Security with WS-RM policy.
-
If you have extended the sample with WS-Security or WS-RM, click Edit in the Provider Policy Set Bindings field.
Select the binding that you created in Creating the provider binding.
This is not the same binding that you associated with the consumer flow.
- Save and close the Broker Archive editor.
To deploy the consumer and provider flows, complete the following steps:
-
Drag the AddressSampleConsumer BAR file to the AddressSampleConsumer execution group.
-
Drag the AddressSampleProvider BAR file to the AddressSampleProvider execution group.
-
Double-click the Event Log for your broker (MB8BROKER).
Ensure that all of the flows deployed successfully. If there are any deployment errors, check them and ensure you correctly followed all of the previous steps.
Back to Extending the sample to create and apply policies
Back to Extending the Address Book sample
Back to sample home