Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Image Added

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.

 

Image Added

The following shows how to wire a reference in a composite:

Code Block
languagexml
<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>

...