Martin Myslík [
https://community.jboss.org/people/m.myslik] created the discussion
"Pipeline interceptor triggers multip"
To view the discussion, visit:
https://community.jboss.org/message/816142#816142
--------------------------------------------------------------
I am working on a project that "sniffs" (intercepts) all messages that are being
send through ESB.
I use JBoss AS 6 with ESB 4.11. I am sending both esb-aware and JMS messages and
everything works, but it seems that my interceptor intercepts every message mulptiple
times.
At the moment, the Interceptor class just prints the concent + some other stuff to
console. When I send a message, it displays the sent message multiple times (3 times to be
more specific).
So my question is: *Why?*. Is this normal behavior? I have no clue where the mistake could
be. I think that is could be one of these two options:
1) I have some error in my sending class, but I dont think thats the issue, since I use
simply one serviceInvoker and my code is very similar to sample quickstarts. Standard
output from gateway listeners also indicate that message is sent only ones...
2) Pipeline Interceptor intercepts the message multiple times, every time at a different
stage of the pipeline. But how to test if this is the issue?
My properties file section for interceptors looks like this:
<properties name="interceptors">
<property name="org.jboss.soa.esb.pipeline.failure.interceptors"
value="interceptor.Interceptor"/>
<property name="org.jboss.soa.esb.pipeline.instantiate.interceptors"
value="interceptor.Interceptor"/>
<property name="org.jboss.soa.esb.pipeline.start.interceptors"
value="interceptor.Interceptor"/>
<property name="org.jboss.soa.esb.pipeline.end.interceptors"
value="interceptor.Interceptor"/>
</properties>
I tried to delete some of the properties but then it either doesnt intercept anything at
all or it triggers multiple times!
Thanks for any tips!
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/816142#816142]
Start a new discussion in JBoss ESB Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]