Use both name and namespace to specify a property. Name=”portlet_message”, namespace=”http://com.ibm.propertybroker.standardtypes”.
2 Turn this portlet project into the plug-in project.
3 For the services that need to receive messages from this portlet, you need to add property listener to the property broker service. See the following example code:
final IProperty property = ServiceManager.createProperty("portlet_message", "http://com.ibm.propertybroker.standardtypes"); ServiceManager.getPropertyBroker().addPropertyListener(new IPropertyListener() { public void handlePropertyChange(IPropertyValue value) { if (property.equals(value.getProperty())) aBTTText.setText(value.getValue().toString()); } }, property);
The following screen capture shows how to use RCP property broker to communicate with local portlet application: