Chris,
i haven't used Wire Tap that much, but i think your markup is setting the
body after the wireTap block completes. assuming you want to send a
constant body to the wireTap target (activemq:queue:jms.incoming) for each
incoming request from the web service, maybe try this:
<route>
<from
uri="spring-ws:rootqname{myns}myRequest?endpointMapping=#endpointMapping" />
<wireTap uri="activemq:queue:jms.incoming">
<body>
<constant>ABC</constant>
</body>
</wireTap>
</route>
... based on http://camel.apache.org/wire-tap.html under the heading "Using
the Spring XML". i might be wrong in this case, but i do know the DSLs
(both fluent and spring) include powerful subtleties that can be easy to
miss. depending on your goal, there might also be a better strategy than
what i've described.
~ RNPG
On Tue, Feb 21, 2012 at 16:16, chris snow <[email protected]> wrote:
> Hi Forum,
>
> I am exposing a spring webservice, where incoming requests are put onto a
> jms queue:
>
> <route>
> <from
> uri="spring-ws:rootqname{myns}myRequest?endpointMapping=#endpointMapping"
> />
> <wireTap uri="activemq:queue:jms.incoming" />
> <setBody><constant>ABC</constant></setBody>
> </route>
>
> I would like to return a constant for the response, but nothing is getting
> returned. I'm not sure what I'm doing wrong.
>
> Any pointers will be appreciated.
>
> Many thanks,
>
> Chris
>