Now that you have a client side component that can register its actions you will want to deploy a portlet that contains the same WSDL file onto your portal server. By having a portlet register the properties and actions on the portal server you will be able to use the portal wiring tool to define the wires between your components. This of course is only one option and the focus of this section is to use declarative wiring in the Composite Application Infrastructure (CAI). CAI gives the client the ability to connect to a portal and install an application that is defined with the template application model. The wiring information for the portlet instances is contained within this markup and will allow the CAI client code to wire the components together declaratively. Another option is to wire your components using the PropertyBrokerWire
extension point. Under the covers the CAI code uses this extension point by providing dynamic extensions to it.
You can create your portlets with whatever tool you wish. For the basic broker to work on the client the portlet does not have to really do anything so creating a “stub portlet” by using the samples in Rational® Application Developer for WebSphere® Software you can simply add your WSDL to the portlet and register the actions and properties. The Lotus® Expeditor does however support locally running JSR 168 portlets that can intercommunicate with any other registered component with the broker. What this means is you can have an SWT version of your component and/or a portlet version of your component and deploy them to the client under different contexts. Once your portlet is created and you export your portlet as a WAR file you simply import the WAR file into your portal server.
When you put the portlet on a page you can now wire the components together using the normal Portal Wiring tool. The Lotus Expeditor also supports cross page wiring however in order to enable an action for cross page wiring you need to mark the action as a ‘Global Action' using the Manage Actions button on the wiring screen.
From the wiring tool, simply select the source portlet, the output property, the target page (defaults to current), the target portlet, the target property and whether or not this wire is public or private.
Parent topic: Creating Cooperative Components with the Lotus Expeditor Property Broker: XPD622