...
Components can provide one or more services to clients. Clients may be remote or local. For remote clients, a component service can be exposed as an endpoint using a binding such as WS-*, JAX-RS or JMS.
The following demonstrates how to expose an endpoint to a JMS queue:
...
A component can act as a client to a service by wiring a reference.
The following shows how to wire a reference in a composite:
Code Block | ||
---|---|---|
| ||
<composite ...> <component name='CalculatorService'> <implementation.java class="org.sample.CalculatorServiceImpl"/> <reference name="addService" target="AddService"/> .... </component> <component name='AddService'> <f3:implementation.java class="org.sample.AddServiceImpl"/> </component> </composite> |
...