Invoke business services within your code

While Petals ESB is able to bind, host and expose services, it is not possible to invoke these services directly from your Java code. Hopefully the DSB provides some ways to invoke business services directly within the kernel code itself.

This can be really useful if a kernel developer wants to invoke services. A good example is the service bus monitoring: Some kernel modules need to send reports to a monitoring service which is potentially hosted outside of the DSB. The monitoring module will be able to use the client to send reports to the service without any knowledge on where is the monitoring service and how to communicate (protocol) with it. It will just send the report to an endpoint, the DSB will do the rest.

With this client code, you are now able to invoke service directly from your Java code. This approach is really helpful for kernel services developers who want to use the DSB capabilities and not to directly invoke services : No more need to manage the transport/message protocol, service location, ...

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.