What is Petals ESB ?

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

Changes (9)

View Page History
The JBI container can be seen as a service container and like a web application container, a JBI container is not useful when used alone. To use the container, artifacts needs to be installed/deployed into the container with the help of management operations.

!worddavc3723c62cf5ef8ebc9f28ff4b258f67d.png|height=207,width=399,thumbnail!

!Petals JBI Container.jpg!



h2. Using a JBI Component

The Java classes, which are packaged into the component, are used to create the component class loader and the container links the component to the container with a context and the delivery channel used to send and receive JBI messages. Once these steps are achieved, the component is started but it can not receive and process JBI messages.

!worddava674ce6d5c412478c832a11fbadb152a.png|height=228,width=367!
!Using JBI Component.jpg!

h2. Using a JBI Service Unit
The service unit can not be used alone since the component to deploy the service unit onto is not defined in its descriptor.

!worddavb3d29239facf554948aa9d78c65c9d25.png|height=229,width=367!
!Using a JBI Service Unit.jpg!

h2. Using a JBI Service Assembly
Now that the container is started, the components are installed and the endpoints are activated with the help of the service unit deployment, services can be invoked and messages can be exchanged between service consumers and providers.

!worddav4f9edb3c35a8421a7dd918a233fe66a5.png|height=310,width=358!
!Using the JBI Environment.jpg!

In the previous figure, a web service client calls a web service which is hosted by the JBI container. This web service is just a facade. The JBI service which is consumed by the facade can be changed as many time as needed. The only condition is to provide the same interface. This approach is extremely flexible since the JBI service can be a service composition of other JBI services (and recursively to reach atomic JBI services).