Understanding Petals components

compared with
Current by Vincent Zurczak
on Jun 17, 2011 16:53.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
A service-unit is a zip archive, with a specific structure, and which contains files and resources. A service-unit targets one and only one component. The resources it holds are used by the component to create, or emulate, a service in the bus.

A service created from a service-unit is given a physical address, or an end-point in the JBI terminology. This end-point is a simple string, defined by the service-unit configuration. The created service also has an interface (a QName) and a service name (also a QName). These three attributes (end-point, interface and service names) are specified in the service-unit configuration. Their values must match the properties of a WSDL file which must be embedded (or referenced, if it is available on a server) in the service-unit configuration.
A service-unit contains a jbi.xml file, which define services to expose or services to invoke (consume) in the bus. A service is exposed by a triplet, made up of an interface name (which is a qualified name), a service name (also a qualified name) and an end-point name. In case of a service provider, a WSDL definition should be referenced too. In that case, the triplet values must match the properties of the WSDL file.

The other resources are used by the component with respect to its logic.