The following figure represents the JBI-based message exchange:
There are multiple patterns by which messages are exchanged, which we will
review shortly.
Chapter 2
[ 45 ]
Provider??”Consumer Role
Though a JBI component can function as a Consumer, a Provider, or as both a
Consumer and Provider, there is clear cut distinction between the Provider and
Consumer roles. These roles may be performed by bindings or engines, in any
combination of the two. When a binding acts as a service Provider, an external
service is implied. Similarly, when the binding acts as a service Consumer, an
external Consumer is implied. In the same way, the use of a Service Engines in
either role implies a local actor for that role.
This is shown in the following figure:
The Provider and Consumer interact with each other through the NMR. When they
interact, they perform the distinct responsibilities (not necessarily in the same order).
Java Business Integration
[ 46 ]
The following is the list of responsibilities, performed by the Provider and Consumer
while interacting with NMR:
1. Provider: Once deployed, the JBI activates the service provider endpoint.
Pages:
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92