Using RCP property broker to communicate with BTT Version 4.3 teller application

To use Rich Client Platform property broker in the Swing components, take the following steps:

  1. For a swing class that takes part in the property broker communication, add a property listener to receive property value. See the following code example:
    final IProperty property = ServiceManager.createProperty("customerId", "http://com.ibm.btt.rcp.sample");
    		final IPropertyListener listener = new IPropertyListener() {
    			public void handlePropertyChange(IPropertyValue ipv) {
    				if(ipv.getProperty().equals(property)){
    					//do some useful things
    				}
    			}
    		};		
    		ServiceManager.getPropertyBroker().addPropertyListener(listener, property);
    Where:
    • IProperty specifies which kind of property this listener is interested in. Generally, a name and namespace are needed to specify the property type.
    • IPropertyValue contains a pair of IProperty and their values.
  2. For a component that sends property values, you need to do the following:
    ServiceManager.changedProperty("customerId"," http://com.ibm.btt.rcp.sample ","123456");

The following screen capture shows how to use RCP property broker to communicate with BTT Version 4.3 teller application:

screen capture of using RCP property broker to communicate with BTT 4.3 teller application