-
1. Re: How to invoke ESB service from action?
beve Oct 28, 2008 2:29 AM (in response to denix)Take a look at the StaticRouter action or the StaticWiretap action depending on whether your action pipleine continues after sending the message to the other service(s).
For more information about these actions please refer to the "StaticRouter" and "StaticWiretap" sections in the ProgrammersGuide.pdf.
Regards,
/Daniel -
2. Re: How to invoke ESB service from action?
denix Oct 28, 2008 2:40 AM (in response to denix)Daniel, I know about StaticRouter/StaticWiretap, but consider the situation we have:
We have service which has action inside which we listen to external queue, i.e. queue which is not wired to JBoss ESB.
When message arrives to this external queue we should stay in this action and also send notification to other JBoss ESB service.
So we don't have action pipeline but we need to invoke other ESB services. -
3. Re: How to invoke ESB service from action?
beve Oct 28, 2008 2:48 AM (in response to denix)We have a service which has an action inside which we listen to external queue, i.e. queue which is not wired to JBoss ESB.
The service in this case is not an ESB Service and the action is not an ESB action, is that correct? If this is the case then you could use the ServiceInvoker to invoke ESB services. -
4. Re: How to invoke ESB service from action?
denix Oct 28, 2008 2:58 AM (in response to denix)No, it is ESB Service and ESB Action which belongs to this service, but we cannot continue action pipeline, we should always stay in this action and have the possibility to invoke other ESB Services.
It looks like we have to threads in one JBoss ESB action: one listen to a queue, second works with other ESB services.
Do we need to use ServiceInvoker also in this case? -
5. Re: How to invoke ESB service from action?
beve Oct 28, 2008 3:19 AM (in response to denix)Do we need to use ServiceInvoker also in this case?
No, if you are in an action pipeline the routers will accomplish the same thing.