When the
client sends a message, the message flow through the NMR through various JBI
components is marked by numbers in sequence.
Client
NMR
Provider Consumer
ESB
BridgeHello
ServicePojo
(POJO)
10
2
9
1
bridgeService
(JSR181)
PojoBindService
(HTTP)
3
4
servicemix
Components
8 7
Provider
destination
HelloService
(JSR181)
5
destinationHello
ServicePojo
(POJO)
6
??? ??? ??? ???
POJO Binding Using JSR181
[ 176 ]
The above components will exchange messages in the following sequence:
1. Client sends message to HTTP binding.
2. HTTP binding routes messages to destination through JBI bus.
3. JSR POJO Bridge being the destination for the above message, will accept the
message.
4. The JSR POJO Bridge will perform the following steps to send the next
message to the JBI bus.
a. It first creates a reference of ServiceMixClient.
ServiceMixClient client = new ServiceMixClientFacade(
this.context);
b. It then creates a QName to refer the destination service.
QName service = new QName("http://binildas.com/esb/
jsrpojo", "destinationHelloService");
c. Using the above ServiceMixClient and the service reference, it then
creates an EndpointResolver.
Pages:
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254